Hello, my actual problem is that I got an self-developed question type, which I upgraded for moodle 2.1 lately. The input fields of this question type are generated with JavaScript/JQuery and also validated with JQuery. Validation still works in moodle 2.1, but when a wrong answer/input is made and valdiation is fired the "Next"-button (, which brings you to the next page of an quiz) is disabled and isn't working correctly too.
I spent a lot of hours trying to solve and to explore this problem. Actually I can only say that moodle code is processed before the validation stops it, after the button is clicked. The "Next"-button gets two new attributes, before validation stops processing: id (e.g.: id=yui_3_2_0_1_1319054073190298) and disabled="". If I enable the "Next"-button or/and delete the id the button still doesn't perform the submit. I tried to change the validation and to execute the validation directly (, without using $PAGE->requires->js_init_code("JS Code");) and a lot of other things, but the problem is still the same.
Has anybody have had such a problem or got a clue how to solve this? Are there any other ways to do a validation? Would the problem be solved if I use YUI3 form module for validation and is it possible to use this validation on forms that aren't created with YUI3 (, because it would be a lot of work to recode the whole "design" of the question type with YUI3 instead of JQuery) ? I would appreciate any ideas.