James Mor
asked on
get all child elements using a regex pattern?
How would i get all child elements of a root element by class name using a regex pattern?
something like this
var items = $("#root_element_id").chil dren("div: regex(clas s,\_[a-z0- 9]{4})");
something like this
var items = $("#root_element_id").chil
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Then you just setup your regex to match whatever you need. Your selector will currently select all direct children of #root_element_id that have a classname starting with underscore and followed by at least 4 (case-insensitive) alphanumeric characters
Open in new window