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