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();
精彩评论