Yes/No radio button on QuickForm needs javascript alert "Are you sure" - how to do this?
| From: | l Burnerheimerton | Date: | Mon, 18 Jul 2005 19:37:47 +0000 |
| Subject: | Yes/No radio button on QuickForm needs javascript alert "Are you sure" - how to do this? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20044@lists.php.net to get a copy of this message | ||
I have a form where one of the fields is a Yes/No
radio button.
$btn[] =& $form->createElement( 'radio', 'display',
null, 'Yes', 'Y' );
$btn[] =& $form->createElement( 'radio', 'display',
null, 'No', 'N' );
$thisForm->addGroup ( $btn, 'rad_display', 'Display: '
);
I want a javascript alert to appear when they try to
change it asking, "Are you sure you want to change
it?" or something like that. If they choose yes, it
processes. If they choose no, it does not process.
Any ideas how to make this happen within QuickForm?
Thanks!
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs