Re: Yes/No radio button on QuickForm needs javascript alert "Are you sure" - how to do this?
| From: | red | Date: | Tue, 19 Jul 2005 15:10:38 +0000 |
| Subject: | Re: Yes/No radio button on QuickForm needs javascript alert "Are you sure" - how to do this? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20058@lists.php.net to get a copy of this message | ||
Try
$btn[] =& $form->createElement( 'radio', 'like', null,
'Yes', 'Y' , array('onblur'=>'alert("Alert Message 1")'));
HTH
greets
red
l Burnerheimerton wrote:
-- http://raven.ch/ - red@raven.ch - icq: 33960605 Bahnhofstrasse 14 - 3400 Burgdorf - Switzerland Mobile: +41 76 373 70 20 - skype: syeo66 PGP-Key: http://raven.ch/public_key.asc Draven - i amHi, l Burnerheimerton wrote:Yes: <label><input name="RadioGroup1" type="radio" onBlur="alert('Alert Message 1')" value="Y">Yes</label> <label><input name="RadioGroup1" type="radio" onBlur="alert('Alert Message 2')" value="N">No</label> How would you add that javascript functionality to: $btn[] =& $form->createElement( 'radio', 'like', null, 'Yes', 'Y' ); $btn[] =& $form->createElement( 'radio', 'like', null, 'No', 'N' ); $form->addGroup ( $btn, 'radioS', 'Do you like the page: ' ); Thanks for any ideas. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hsI have a form where one of the fields is a Yes/No radio button. I want a javascript alert to appear when they trytochange it asking, "Are you sure you want to change it?" or something like that. If they choose yes,itprocesses. If they choose no, it does notprocess.Any ideas how to make this happen withinQuickForm? Well, can you implement this without QuickForm? --