QuerySelectorall By ID Regex

document.querySelectorAll('[id^="edit-tid"]');
Inquisitive Impala