日期:2014-05-16 浏览次数:20413 次
<html> <head> <title> </title> <Script Language=Javascript> function showdiv(mydiv){ var div=document.getElementById(mydiv); div.style.display=div.style.display=="none"?"block":"none"; } </Script> </head> <body> <form method='post' action=''> one:<input type='text' name='one' id='one'><br/> two:<input type='text' name='two' id='two'><br/> <input type='button' value='Showinvisible' onclick='showdiv("mydiv")'> <div style='display:none;' id='mydiv'> three:<input type='text' name='one' id='one'><br/> four:<input type='text' name='two' id='two'><br/> </div>asdfsdf </form> </body> </html>