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

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -