views:

55

answers:

2

Probably a simple question but I need to add a link to the text as below and I am not sure how to do it

callBack: function(me) {
    $(me).text('All done! This is my link to google!').css('color','#090');
   }
A: 
callBack: function(me) {
  $(me).html('All done! <a href="http://www.google.com"&gt;This is my link to google!</a>').css('color','#090');
}
kkyy
+2  A: 
    $(me).html($('<a></a>').attr('href','www.google.com')
                           .text('All done! This is my link to google!')
                           .css('color','#090')
               );
karim79
thanks guys this is exactly what I needed