javascript - Is there a way to perform .filter and .find at the same time? -


i dealing templates , finding elements future updating when responding events. however, i'd ability mark these elements class, data-* attribute, or else without having know markup beforehand.

is there way perform .filter() , .find() search @ same time?

my current solution use .add() operation combine 2 results, seems bit convoluted.

elements.filter(selector).add(elements.find(selector)) 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -