queryselector tag startswith code example Example: javascript queryselector starts with document.querySelector("[id^='someId']") // id starts with someId