Accordeon not working when loaded via Ajax
If I load a web page in the old way (everything at once), the widget
works fine.
If I try to load it in an jQuery Tab, that loads its content when
clicked it does not work at all. All content hight is set to 0 (by
style, so I can't change it) and the content is displayed in the
background of the section headers.
Code would be something like:
<div>
<div>
<h3>
...
exacltly the same as in the sample, acitivated with:
jQuery('#payment_type').each(function(item) {jQuery(this).accordion
({header: "h3"});});
The same code works in non-Ajax (copied 1:1).
Is this a bug? Is there any workaround? Or are jQuery widgets not
designed for Ajax applications ;)
Thank you very much for your help in advance!
Best regards,
Anton Trapp