javascript - Test if two elements are the same -
i suspect work @ first:
if ($('#element') == $('#element')) alert('hello');
but not. how 1 test if elements same?
as of jquery 1.6 can do:
$element1.is($element2)
i suspect work @ first:
if ($('#element') == $('#element')) alert('hello');
but not. how 1 test if elements same?
as of jquery 1.6 can do:
$element1.is($element2)
Comments
Post a Comment