I am using IE 6.x & Mozilla 2.x
This is the HTML code
[HTML] <td id="td2">
<tr id="td3">
<td id="td4"> Some Test TEXT </td>
<td id="td5"> <input type=checkbox value="chk-4">CheckBox 4 </td>
</tr>
</td>[/HTML]
this is the Javascript Code
[CODE=javascript]var a = document.getEle mentById('td2') ;
alert(a.hasChil dNodes());[/CODE]
the "hasChildNodes( )" should give the result as TRUE but it is giving FALSE
WHY ?????????
This is the HTML code
[HTML] <td id="td2">
<tr id="td3">
<td id="td4"> Some Test TEXT </td>
<td id="td5"> <input type=checkbox value="chk-4">CheckBox 4 </td>
</tr>
</td>[/HTML]
this is the Javascript Code
[CODE=javascript]var a = document.getEle mentById('td2') ;
alert(a.hasChil dNodes());[/CODE]
the "hasChildNodes( )" should give the result as TRUE but it is giving FALSE
WHY ?????????
Comment