怎么禁止checkbox选项框为只读,类似
1<input readonly="" type="text"/>
的效果。readonly对checkbox不起作用。使用disabled会使该选项值也无效。谢谢!
---------------------------------------------------------------
1<input onclick="this.checked=!this.checked" type="checkbox"/>
---------------------------------------------------------------
1<input onclick="if(this.checked)this.checked=false" type="checkbox"/>
---------------------------------------------------------------
1<input name="frm" onclick="event.returnValue=false;" type="checkbox" value="1"/>
---------------------------------------------------------------
1<input checked="" onclick="this.checked=!this.checked" type="checkbox"/>
1<input checked="" onclick="return false" type="checkbox"/>
1<span onmouseout="firstChild.disabled=false" onmouseover="firstChild.disabled=true"><input checked="" type="checkbox"/></span>