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();