如何用radio实现checkbox的效果,再次点击后取消选择

Add a comment April 18th, 2011


1

2

3

<form name=”test” method=”POST”>
<input type=”radio” name=”a” value=”1″ onMouseOver=”chk=checked;” onClick=”checked=chk=!chk;”> 1
<input type=”radio” name=”a” value=”2″ onMouseOver=”chk=checked;” onClick=”checked=chk=!chk;”> 2
<input type=”radio” name=”a” value=”3″ onMouseOver=”chk=checked;” onClick=”checked=chk=!chk;”> 3
</form>

  1. No comments yet.Be the first ?
  1. No trackbacks yet.
Comments feed