Get element by part of Name or ID

Q: Get an elements if it's id matches + javascript

A:
document.querySelectorAll('input[id^="id_qtedje_"]');

document.querySelector('[id^="poll-"]').id;
The selector means: get an element where the attribute [id] begins with the string "poll-".

^ matches the start
* matches any position
$ matches the end