求这样一个脚本,利用复选框展开表格,急急

就像有些论坛一样一点前面的加号就展开,我想在想要的效果是选中前面的复选框就展开!
---------------------------------------------------------------

1<input onclick="a.style.display=this.checked==1?'':'none'" type="checkbox"/>
1<table id="a" style="display:none"><tr><td>adsf</td></tr></table>
Published At
Categories with Web编程
comments powered by Disqus