jquery的选择器的使用技巧之如何选择input框

(编辑:jimmy 日期: 2024/10/14 浏览:2)

下面的方法是选择name是redthree的 并且选中了的input 里面的 title属性的内容 <input name="redTrdd" title='xiaoming'>
复制代码 代码如下:
xtest = $(":input[name='radThree'][checked]").attr("title");