JavaScript QuerySelector começa com

document.querySelector("[id^='someId']")
// id starts with someId
MCRC