ITeye博客

点击文字让radio选中

fanjf · 2013-08-08 09:24 · JavaScript · 开源软件 · Markdown

<html>
<body>
   <form action="" name="form1" method="post">
  
    
     <br />
     <label style="cursor:pointer" for="man">
     <input type="radio" value="男" name="man" id="man"/>男
     </label>
     <label style="cursor:pointer" for="man2">
     <input type="radio" value="女" name="man" id="man2"/>女
     </label>
   </form>

   <input type="radio" id="male" name="sex" checked="checked"/><label style="cursor:pointer" for="male">男1</label> 

   <input type="radio" id="female" name="sex" /><label style="cursor:pointer" for="female">女1</label> 

</body>
</html>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。