crazy jquery problem working with mozilla and not in others

Posted by moustafa on Stack Overflow See other posts from Stack Overflow or by moustafa
Published on 2010-03-13T15:00:33Z Indexed on 2010/03/13 15:05 UTC
Read the original article Hit count: 299

Filed under:

i have this code

$(function() { $('#ans_vote a span').click(function(){alert('working');return false;});});

and this html

<div id="ans_vote">
<a href='#'><span>one</span></a>
</div>   

<div id="ans_vote">
<a href='#'><span>two</span></a>
</div>   

when click one and two in mozilla its working but when click one in ie its working but when click two its not working

© Stack Overflow or respective owner

Related posts about jQuery