I've got an html anchor element:
<a title="Some stuff here">Link Text</a>
...and I want to get the contents of the title so I can use it for something else:
$('a').click(function() {
var title = $(this).getTheTitleAttribute();
alert(title);
});
How can I do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…