I am using a PHP form Builder class v3.1 http://code.google.com/p/php-form-builder-class/
I am trying to create a dynamic form
$options = array("Amount", "Reset Password");
$form->addElement(new Element\Radio("Command Type to Employee : ", "type", $options));
$form->addElement(new Element\TextBox("Amount :", "amount"));
$form->addElement(new Element\TextBox("New Password:", "password"));
when I select the "Amount" radio button the "amount" text field should show and
when I select the "Reset password" radio button the "password" text field should show.
Can anyone kindly help me regarding with it. Thanks in advance.