Is it possible to use a regex in jQuery's bind method for custom events. Something like...
$(selector).bind(myRegex, function(){})
Is it possible to use a regex in jQuery's bind method for custom events. Something like...
$(selector).bind(myRegex, function(){})
If you're trying to use a regex to select only certain DOM elements, you can use the .filter() method to pass in a function that would then perform regex logic to filter out the elements that don't match.
$(selector).filter(function (index) {
return /myregex/.test($(this).attr("id"));
})
Otherwise it's not too clear what you're trying to do...