Friday 31 August 2012

Javascript | div | hide show | button with source code

javascript | div | hide show | button with source code
<script>
function funshow()
{
if(document.getElementById("but1").value=="show")
{
document.getElementById('div1').style.visibility="visible"
document.getElementById("but1").value="hide"
}
else
{
document.getElementById('div1').style.visibility="hidden"
document.getElementById("but1").value="show"
}
}
</script>
<body>
<input type="button" value="show" id="but1" onclick="funshow()">
<div id='div1'style="visibility:hidden">
<table bgcolor="lightblue">
<tr><td>
Usename</td>
<td><input type="text"></td></tr>
<tr><td>
Password</td>
<td><input type="text"></td></tr>
<tr><td><input type="button" value="click">
</td></tr>
</table>
</div>
</body>
Share This
Previous Post
Next Post

FYJC XI standard online admisson Process and declaraton of Merit list . Cut off List For prevous year also . 10 Th Results onlne declaraton Maharashtra Region .

0 comments: