I'm upgrading an app from prototype.js to jquery.
I've got this code (prototype.js):
var el = ... /* this is done */
if (el.match('.pagination a') && el.href) {
doAjaxStuff()
}
What is the equivalent to Element.match in jquery?
It is the is function.
el.is('.pagination a')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With