How come the equation in the title is false? How do check if two jQuery selectors point to the same DOM object?
Use $.is()
http://api.jquery.com/is/
Check the current matched set of elements against a selector, element, or jQuery object and return
trueif at least one of these elements matches the given arguments...Unlike other filtering methods,
.is()does not create a new jQuery object. Instead, it allows you to test the contents of a jQuery object without modification. This is often useful inside callbacks, such as event handlers...