I need to remove all the links in my document that start with “/{tag_” or “{tag_”
so far I have $("a[href^='/{tag_']").remove(); but it’s not working,
I also had
$("a").each(function() {
var href = $(this).attr("href");
if(href == '') { // or anything else you want to remove...
$(this).remove();
}
$("a[href^='/{tag_']").remove();
});
And I have tried $(this).attr("href^='/{tag_'"); also not working, Any ideas?
Thanks Tara
That works for me: http://jsfiddle.net/neuroflux/tKapr/1/