Jquery - equivalent to Prototype.js "matchotype" function

I am upgrading my application from prototype.js to jquery.

I have this code (prototype.js):

var el = ... /* this is done */
if (el.match('.pagination a') && el.href) {
  doAjaxStuff()
}

      

What's the equivalent of Element.match in jquery?

+3


source to share


1 answer


This is is

.



el.is('.pagination a')

      

+5


source







All Articles