当前位置:Gxlcms > JavaScript > jquery的选择器的使用技巧之如何选择input框

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

时间:2021-07-01 10:21:17 帮助过:28人阅读

下面的方法是选择name是redthree的 并且选中了的input 里面的 title属性的内容 <input name="redTrdd" title='xiaoming'>
代码如下:

xtest = $(":input[name='radThree'][checked]").attr("title");

人气教程排行