Ansermot.ch Another computer sciences blog….

19fév/100

jQuery – Element exists ?

Here's a very small snippet about how to know if a Dom element is on the document with jQuery

var myElement = $('#myElement');
if (myElement.size() == 0) {
// Element doesn't exists
} else {
// Element exists
}

Posts that maybe you want to read ::

Commentaires (0) Trackbacks (0)

Aucun commentaire pour l'instant


Laisser un commentaire


Aucun trackbacks pour l'instant