How to add title in anchor tag using jquery

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