DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Get element by ID with only a partial string
document.querySelector('[id^="poll-"]').id;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Get
#element
#ID
#partial
#string
ADD COMMENT
Topic
COMMENT
Name
6+1 =
Submit