elementwill always match with this.
jsFiddle .
Also, wrapping it in $()will make it a jQuery object and will not equal another, even if you wrap another jQuery object.
There should never be a reason why you need to compare thiswith elementin this context.
source
share