I need to get all innerText of all elements that partially match a given string.
Heres a snippet of the code:
<span class="18794221455sarasa">Some text</span>
The class always ends with 'sarasa' the numbers are dynamic. I want to run it on a chrome extension that's why I need it to be on plain Javascript
class
, then check whether the class matches the pattern in your loop body. – Duna