Home Top Ad

How to hide a tag after given speciffic condition?

Share:

How to hide a tag after given speciffic condition?

You can to it using each:
$("a").each(function() {
    if($(this).attr("href") == "") {
        $(this).hide();
    }
});

Aucun commentaire