Re: Quickform Select onchange target?

From: Date: Tue, 12 Aug 2003 15:18:18 +0000
Subject: Re: Quickform Select onchange target?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7162@lists.php.net to get a copy of this message
<keith@midnighthax.com> wrote : > Has anyone patched Quickform's select element to give it an onchange > target (ie, so that when a change occurs a target url is accessed which > can [presumably] update the form without the need for the user to click > on the submit button)? You can set an 'onchange' attribute when adding or creating the select element. There is no need for a patch. $form->addElement('select', 'iselTest', 'Test Select:', $arrayOfOptions, array('onchange' => 'javascript:singACapella("german_anthem");'); Bertrand Mansion Mamasam

« previous php.pear.general (#7162) next »