I use the following fragment in my html page and I tried using the document.getElementById().style.display='none' to hide the div or the row but neither works..
<table>
<form>
<tr id='myrow'>
<td><div id="divi" title='mydiv'></div></td>
</tr>
</form>
</table>
<input type="submit" name='go' value="Go" onclick='reset();return false;'>
function reset(){
document.getElementById('txt1').value="";
document.getElementById('txt2').value="";
document.getElementById('myrow').style.display='no ne';
alert('hidden!!');
}
The functions empties the textboxes but doesnt hide the row or div and also no alert is given !! Could anyone help ??