DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript getelementbyid
const
element
=
document
.
getElementById
(
'id'
)
;
//or
const
element
=
document
.
querySelector
(
'#id'
)
;
Source by www.journaldunet.fr #
PREVIOUS
NEXT
Tagged:
#javascript
#getelementbyid
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit