JQuery Compare Selectors


/ Published in: jQuery
Save to your folder(s)

Selectors are ARRAYs ... so you should do something like this

$('div.a')[0] == $('div#a')[0]

or use the bellow method

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.