2009-04-16 18 views

risposta

1
el.attribute = value 

è tutto quello che c'è da fare. L'attributo viene creato se non esiste.

+0

Ha anche chiesto la rimozione. –

+3

Imposta _property_ sull'oggetto 'HTMLElement'. Non imposta un _attribute_. Usa 'setAttribute (nome, valore)'. – bryc

Problemi correlati