how to add title in anchor using jquery

Posted by Klbaiju under jQuery on 7/17/2017 | Points: 10 | Views : 2787 | Status : [Member] | Replies : 1
Hi ,
I want to add a title in anchor tag using jquery
my following code is not showing title

$(this).append("<a class='anchor3' title='already booked' id='" + fcelltext + "-" + hdtext + "' href='#' >" + name + "</a>");
after this code i added following code
$("a").attr('title', 'booked');
this is not working
how to solve this

Regards
Baiju




Responses

Posted by: Sarahbishop on: 7/18/2017 [Member] Starter | Points: 25

Up
0
Down
You try to use jquery .attr() to set any attribute. for yours it will be divTitleBar.children('a').removeClass("ui-dialog-titlebar-open ui-corner-all").addClass("ui-dialog-help-layer-titlebar-open").attr('title','Open');
https://19216811wiki.com/

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response