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
Post a Comment