When I assign a jquery element to a variable, it won't match the element in a comparison, but when I assign a javascript element it will...
test1 = $(".the_div");
console.log(test1 == $(".the_div"));
// logs false
test2 = $(".the_div")[0];
console.log(test2 == $(".the_div")[0]);
// logs true
What's going on? Why this happens?