如何在jquery的输入标签中选择"title"属性? [英] How can I select the 'title' attribute in an input tag in jquery?

查看:52
本文介绍了如何在jquery的输入标签中选择"title"属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

就像我们在jquery中有(#id_name"),(.class_name")(:input_type") .. etc这样的选择器一样,如何选择<输入标签中的code> title 属性?

Just like we have selectors like ("#id_name"),(".class_name") (":input_type")..etc in jquery, how can I select the title attribute from an input tag?

示例:<输入类型="abc"id ="xyz"标题=信息".>

我需要一个选择器来选择标题值.

I need a selector to select title value.

推荐答案

$('input[title="information"]');

这篇关于如何在jquery的输入标签中选择"title"属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆