javascript - Select element by tag/classname length -


i'd select element using javascript/jquery in tampermonkey.

the class name , tag of elements changing each time page loads. i'd have use form of regex, cant figure out how it.

this how html looks like:

<ivodo class="ivodo" ... </ivodo> <ivodo class="ivodo" ... </ivodo> <ivodo class="ivodo" ... </ivodo> 
  • the tag same classname.
  • it's 4/5 letter random "code"

i'm guessing this: $('[/^[a-z]{4,5}/}')

could please me right regexp?

the simplest way select dynamic elements based on fixed parent, example:

$('#parent > *').each(function() {   // logic here... }) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -