mercredi 8 mai 2019

How to check Div from another file

I'm using the code shown below to check if a div is visible or not. The code works 100%, however I'd like to know how I can do the same if but to check a div that is in another file.

if ( $(element).css('display') == 'none' || $(element).css("visibility") == "hidden"){
    // element is hidden
}

Aucun commentaire:

Enregistrer un commentaire