开发者

How do I find all elements that have a title attribute using jQuery?

How can I 开发者_运维知识库find all elements that have a title attribute using jQuery? It's for enabling tooltips using the tipsy jQuery plugin.


$('[title]')

This will do the job.


You can use the Has Attribute selector:

$("[title]").something();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜