David Ansermot Web Developer / TYPO3 Integrator

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

  1. var myElement = $(‘#myElement’);
  2. if (myElement.size() == 0) {
  3. // Element doesn’t exists
  4. } else {
  5. // Element exists
  6. }
qrCode

Posts that maybe you want to read ::

Commentaires (0) Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant