how to compare two element in jquery

Posted by zjm1126 on Stack Overflow See other posts from Stack Overflow or by zjm1126
Published on 2010-03-09T09:18:12Z Indexed on 2010/03/09 9:21 UTC
Read the original article Hit count: 128

Filed under:
|
            var a=$('#start > div:last-child');
            var b=$('#start > div.live')[0];
            alert(a==b)
            alert(a==$(b))

it always false,

how to compare two element in jquery,

thanks

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript