How to hide a tag after given speciffic condition?
You can to it using
each
:$("a").each(function() {
if($(this).attr("href") == "") {
$(this).hide();
}
});
Learn more: https://api.jquery.com/each/
each
:$("a").each(function() {
if($(this).attr("href") == "") {
$(this).hide();
}
});
Aucun commentaire