首页 > 语言 > JavaScript > 正文

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

2024-05-06 15:52:14
字体:
来源:转载
供稿:网友
如何选择input框,方法貌似有很多,而在jquery中有个相当简单不错的方法,在下面为大家介绍下详细的实现,希望大家可以练练手哦

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

复制代码 代码如下:


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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选