[jQuery] How to determine filter used to select $(this)?
If I do a match that is using multiple selectors, how(or is it
possible) do I know which filter was used to select the item in the
current index?
For example:
$('*[onabort],*[onblur],*[onchange]').each(function(){
$(this).css('border','1px solid #000');
});
This scans the DOM for any elements with these inline javascript
attributes. In the .each() loop, I need to know which filter was used
to match the current selection. Can this be done?