jquery - How to create anchor tag -


$(".unfriend").click(function () {     $(".friends_slected").text("add friend");     return false; });            

in .text("add friend"); add friend text added this.... how can make add friend anchor tag not simple text using jquery?

you can use wrap

$('.friends_slected').wrap('<a href="#" />'); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -