• 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
Help
1 Votes
Python stressed me out
1 Votes
How often can you become a fully stuck developer?
1 Votes
Improve accessibility of this page
0 Votes
Course Doubt
1 Votes
Data analysis
0 Votes
[ReSolved] I paid for the subscription but didn't receive it.
0 Votes
If we already have the DELETE command in SQL, why do we need TRUNCATE?
1 Votes
How do i make a lexer and parser
1 Votes
Upvoting not work
0 Votes