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)
(Souscrire aux commentaires de cet article)
Aucun trackbacks pour l'instant
