Expandable/collapsible fieldsets inside of an AJAX jQuery dialog

Expandable/collapsible fieldsets inside of an AJAX jQuery dialog

by Valeriy Streltsov -
Number of replies: 1

Hello all!

I'm experiencing difficulties with fieldsets inside of a jQuery dialog retrieved via AJAX from question editing page. As I understood, to make them expandable/collapsible, there's a script /lib/form/yui/shortforms/shortforms.js which modifies the html in some way. I added some alerts to the script and noticed that it tries to modify the question editing page for the second time, not my ajax dialog shown later.

Is there a way to make the script modify the proper page, i.e. my dialog?

Thanks!

Average of ratings: -
In reply to Valeriy Streltsov

Re: Expandable/collapsible fieldsets inside of an AJAX jQuery dialog

by Valeriy Streltsov -

Ok, solved this by myself - the problem was that both of the forms had the same id="mform1".