Has anyone tried to apply YUI ajax in a form before? Is there anyway I can chuck in a div tag inside a form just to rending an effect? no echo please
$mform->addElement('html', '<div id="hello">');
$mform->addElement($some_elements, ...);
$mform->addElement('html', '</div>');
$mform->addElement($some_elements, ...);
$mform->addElement('html', '</div>');
Applying YUI functions to a Moodle Form is just like applying them to any other element. You might need a bit of trickery with radio buttons and check boxes which don't always have the id attribute you'd expect, I usually define them manually in the $attributes parameter.
Hi Lei,
Did you resolve your problem ? If yes, can you help me, I have the same problem. I´d like to use YUI ajax
Thanks in advance