You have to wrap your event.target with $() so that you can compare apples to apples. What you're doing is comparing a DOM node with jQuery instead of comparing a DOM node with another DOM node or comparing a jQuery object with another jQuery object.
|