Answers for "Get element by ID with only a partial string"

0

Get element by ID with only a partial string

document.querySelector('[id^="poll-"]').id;
Posted by: Guest on August-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language