Search
 
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
Name
6+1 =