User Tools

Site Tools


jsedom:working_with_restricted_attributes

La dot notation n'est pas toujours facile en raison des mots réservés par js (ex class for etc.)

Autres solutions :

  1. node.getAttribute(<nom de l'attribut>)
  2. node.setAttribute(<nom>,<valeur>)
  3. node.hasAttribute(<nom>)
  4. node.removeAttribute(<nom>)
jsedom/working_with_restricted_attributes.txt · Last modified: 2016/03/09 11:59 by leo