jquery选择器之radio 和id
来源:互联网 发布:淘宝下半年活动 编辑:程序博客网 时间:2024/06/07 02:16
$(":radio#1").attr("checked");
为了提高效率如下例子
<td class='ui-field-contain'><input type='text' name='actMetric' id='actMetric' data-inline='true'></td><td class='ui-field-contain'><span style="background-color: rgb(255, 255, 153);"><input type='radio' style='margin-top:5px;' name='checked' id='checked1' data-inline='true'></span></td><td class='ui-field-contain'><input type='text' name='mainSum' id='mainSum' data-inline='true'></td><td class='ui-field-contain'><span style="background-color: rgb(255, 255, 153);"><input type='radio' style='margin-top:5px;' name='checked' id='checked2' data-inline='true'></span></td><td class='ui-field-contain'><input type='text' name='actBakeP' id='actBakeP' data-inline='true'></td>
$(":radio#1").attr("checked");
试了一下,这样是可行的
同样:
$(":radio[id='1']").attr("checked");
这样也可以!
0 0
- jquery选择器之radio 和id
- jQuery选择器之id选择器
- jQuery选择器之id选择器
- jQuery选择器之id选择器
- jQuery之#id选择器
- jquery radio 选择器
- html5选择器之标签选择器,id选择器和类选择器
- Jquery -- 常用选择器 和 div/select/radio/checkbox的使用
- jquery,id选择器和class选择器的效率对比
- jquery id选择器和class选择器的区别
- Jquery radio选择器一些问题
- jQuery选择器探究:ID选择器
- angularjs和jQuery之checkbox和radio
- ID选择器(jQuery)
- JQuery中的ID选择器
- jQuery的ID选择器
- jQuery id选择器无效
- jquery之层次选择器和过滤选择器
- 安装JDK后如何对系统配置
- Windows下使用Sublime Text 2调试/运行 C/C++ 程序
- 获得IP
- hdu 5017 模拟退火算法
- AOP技术应用和研究--动态代理
- jquery选择器之radio 和id
- 进程的通信方式及特点
- Sublime text2 C/C++ 编译环境设置
- BZOJ 3680 吊打XXX 计算几何 模拟退火 广义费马点
- 海纳百川,有容乃大
- C++修改本地组策略
- Android 框架推荐
- hdu 5015 233 Matrix(构造矩阵)
- Ananagrams uva156