• Cursussen
  • Code Compiler
  • Discussiëren
  • Prijzen
  • Teams
Menu
+ 11

Attribute

How can I create a attribute to an new element in JavaScript?

javascriptattributes
19th Dec 2018, 1:07 PM
Roopesh
Roopesh - avatar
2 Antwoorden
+ 6
use createAttribute https://www.w3schools.com/jsref/met_document_createattribute.asp setAttribute https://www.w3schools.com/jsref/met_element_setattribute.asp
19th Dec 2018, 1:25 PM
🇵🇰 Danish Khan 🇵🇰
🇵🇰 Danish Khan 🇵🇰 - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
debate which is better
4 Votes
Cource
1 Votes
Im confused was that seriously it
0 Votes
why is my AI in spanish
0 Votes
Which one should I start with to learn python. The developer path or both seperate beginner and intermediate python?
0 Votes
Is anyone else having this issue?
2 Votes
Arduino
2 Votes