html:html 网页中 如何实现多选框或单选框,点击字就能选中,而不是非要点小按钮。

来源:百度知道 编辑:UC知道 时间:2024/05/10 07:15:53
比如 单选框 男、女 能够点男、女两个字就能选中

不好意思,看错了题目,特意来改过..

点击文字也可以选中单选框

<br>
<input type="radio" name="regtype" value="A02" id="A02">
<label for="A02"> 点击我(男)</label><br>
<br>
<input type="radio" name="regtype1" value="A03" id="A03">
<label for="A03"> 点击我(女)</label><br>

***********************************************************

鼠标移动到文本框内自动选中全部

<input type="text" name="key" size="12" value="关键字" onFocus=this.select() onMouseOver=this.focus() class="line">

我测试通过的.

--------------------------
我喜欢回答我所知道的.