Skip to content Skip to sidebar Skip to footer

Alternative For Jquery's Is() Function?

I was using jQuery's .is() function (the one introduced in 1.6, not the prior version of it) to compare an object, but it unfortunately won't work with jQuery 1.5.2, which is what

Solution 1:

You can use this === $marker[0] to compare the two DOM elements.

Consider upgrading to a recent jQuery version though. Except some minor changes it's usually pretty easy.

Post a Comment for "Alternative For Jquery's Is() Function?"