Jquery tabs and forms

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-04-28T21:29:28Z Indexed on 2010/04/28 21:37 UTC
Read the original article Hit count: 403

Filed under:
|
|
|

Hi, this may be a weird problem but I’m not sure the best way to go about it..

I am using JQuery ajax tabs. The tab section is dynamic so multiple tabs can be added, as the content is loaded via Ajax the same content can be loaded into different tabs. The other important detail is that i am using the Cache option so the tabs maintain state.

Now problems arise when more than one tab has been loaded. It looks like HTML items such as forms and divs now have duplicated id's within the DOM, so Ajax queries can no longer distinguish between the elements.. The result is that any JavaScript/Ajax breaks.

Does anyone have any suggestions for way to tackle such a problem?

Thanks in advance..

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about tabs