On my website, I clone a div's contents when the page loads, and then I check whether or not the contents have changed.
originalStepOrder = $('#org').clone();
console.log(originalStepOrder[0] == $('#org')[0]);
I expected that the last line of code would return true when I haven't made any changes to the div's contents, but it returns false.
I also tried
console.log(originalStepOrder.is($('#org'));
which also returns false.
How can I check whether or not two divs have the same content?