Code:
<td name="updatetemplate_change">
<a href="javascript:changeTemplateName(this)"><p id="p_tempname" class="word-wrap">kiran</p></a>
this is my javascript code
Code:
function changeTemplateName(name){
var tableref=document.getElementById("templatetable1").rows[1].cells;
alert(tableref[1].innerText);
}
now the problem is it is displaying the whole p tag,i should get only the value what is inside the p tag i.e kiran
help me i am a newbie