jquery的选择器的使用技巧之如何选择input框
发布时间:2014-03-28 编辑:jiaochengji.com
如何选择input框,方法貌似有很多,而在jquery中有个相当简单不错的方法,在下面为大家介绍下详细的实现,希望大家可以练练手哦
下面的方法是选择name是redthree的 并且选中了的input 里面的 title属性的内容 <input name="redTrdd" title='xiaoming'>
xtest = $(":input[name='radThree'][checked]").attr("title");
复制代码 代码如下:
xtest = $(":input[name='radThree'][checked]").attr("title");
您可能感兴趣的文章:
jquery的选择器的使用技巧之如何选择input框
jquery选择器大全详解
jQuery选择器总结
jquery选择器大全 全面详解jquery选择器
jQuery学习笔记之jQuery选择器的使用
jquery选择器(常用选择器说明)
Jquery实战_读书笔记2 选择器
jQuery Selectors(选择器)的使用(二、层次篇)
jquery 获取子元素的方法
jquery选择器的选择使用及性能介绍
[关闭]