jQuery操作radiojQuery操作<input type="radio">
2013-03-04 00:58
731 查看
<input type="radio">如下:
?
1、获取选中的radio的值:
?
使用元素选择器,再使用属性过滤器name='city',最后使用:checked选取被选中的元素。
2、给指定值的radio设置选中状态:
?
给name="city"而且value="YangZhou"的radio设置选中状态。
3、取消name="city"的radio的选中状态:
?
4、获取name="city"的radio的个数:
?
5、获取name="city"而且索引是偶数的radio:
?
索引是从0开始的。
6、获取name="city"而且索引是奇数的radio:
?
索引是从0开始的。
7、迭代radio:
?
迭代name="city"的radio。
8、禁用radio:
?
禁用name="city"的radio。
9、启用radio:
?
启用name="city"的radio。
?
?
2、给指定值的radio设置选中状态:
?
3、取消name="city"的radio的选中状态:
?
?
?
6、获取name="city"而且索引是奇数的radio:
?
7、迭代radio:
?
8、禁用radio:
?
9、启用radio:
?
相关文章推荐
- jQuery操作<input type="radio">
- jQuery操作<input type="radio">
- <input type="file" />accept属性列表
- <input type="file" />浏览时只显示指定文件类型
- <input type="file" />浏览时只显示指定文件类型
- 使用<input type="file">实现文件上传
- 使用了<input type="submit" value="Submit" onclick="this.disabled=true" />不能提交
- <input type="image"> 和 <img> 用法区别
- jQuery操作<input type="radio">
- 关于JSP中单击任意标签弹出文件选择框(<input type="file"/>)的实现方法
- 关于<input type="text">不能显示空格的问题
- <input type="button" style="display:none">隐藏按钮显示
- 使用<Combox:combox>时因为多加了<input type="hidden">造成的错误
- <input type="radio" />的选中和禁用
- <button>与<input type="button">在火狐下区别 ajax请求
- jsp <input type="file"> 清空value值的一种方式
- <input type="radio" >与<input type="checkbox">值得获取
- <input type="file" />浏览时只显示指定文件类型
- jQuery操作<input type="radio">
- <input type="file">中怎设置按钮的样式