jquery select divs with same id

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2009-05-24T01:16:53Z Indexed on 2010/03/26 8:33 UTC
Read the original article Hit count: 154

Filed under:
|

hei guys i want to select two divs with the same id in jquery. how do i do it?

i tried this and it did not work

jQuery('#xx').each(function(ind,obj){
      //do stuff;
});

i have jquery countdown timers in a page, and i update them via ajax. some of these countdown timers repeat and that is why i need to use the same id on the divs.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about selectors