Reputation: 251
I am not able to set the title property for span tag... I am using the following code
$('.className').find("span").attr("title",'Some_text');
Its not working...
Upvotes: 6
Views: 21638
Reputation: 2388
Maybe the problem is that you are searching for a span element in a class, this will work for you.
$('span.className').attr('title','New Title');
Here you apply the title to all the span elements with that class.
Hope it helps you.
Upvotes: 29