How do I find the title text of a link in jquery.
You can use attr
to find title
attribute.
var title = jQuery("a").attr("title"); //replace "a" with your own selector
I think you mean the text of the link:
var link_text = $('#someLink').text();
If you mean the title
attribute (the text that you see when you hover over the link):
var link_title = $('#someLink').attr('title');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With