querySelectorAll by id regex code example Example: querySelectorAll by id regex document.querySelectorAll('[id^="edit-tid"]');