问题
How can I find all elements that have a title attribute using jQuery? It's for enabling tooltips using the tipsy jQuery plugin.
回答1:
$('[title]')
This will do the job.
回答2:
You can use the Has Attribute selector:
$("[title]").something();
来源:https://stackoverflow.com/questions/4186849/how-do-i-find-all-elements-that-have-a-title-attribute-using-jquery