WEB前端开发群:17784629
<script language=javascript> function check(flag){ if(flag == true){ document.getElementById("c").innerHTML='<input type=checkbox name=c1><input type=checkbox name=c1><input type=checkbox name=c1>' }else{ document.getElementById("c").innerHTML='' } } </script> </head> <body > <input type=radio name=a onclick="check(true)">A <input type=radio name=a onclick="check(false)">B <br><div id=c></div>
提示:你可以先修改部分代码再运行。
Posted in 前端特效.
Tagged with 显示, 隐藏.
No comments
By yflintao – 2010年07月28日
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.
留下评论 Cancel Some HTML is OK
Name (required)
Email (required, but never shared)
Web
or, reply to this post via trackback.
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.