Html control
<input id="test" type="text" />
Script starts from here
var obj1=$("#test");
var obj2=$("#test");
console.log(obj1==obj2);
if(obj1==obj2){ //this will be always false
console.log(true);
}
var obj2=$("#test");
console.log(obj1==obj2);
if(obj1==obj2){ //this will be always false
console.log(true);
}
No comments:
Post a Comment