Hello,
I would like to create a function that when a user clicks a radio button, it sends a value to the function and then it outputs some table information.
For instance when a user clicks a "Yes" radio I want it to add two rows to the table.
Here is what I tried.
function rollOverFunction($change){
$check = $change;
if($check == "Yes"){
$output = "<tr><td>Prior Custodian/Plan Name</td><td></td></tr><tr><td>Expected Rollover Amount $</td><td></td></tr>";
}
}
<input name="rollOver" type="radio" value="Yes" onFocus="<?php rollOverFunction('Yes') ?>"> No <input name="rollOver" type="radio" value="No" checked="checked" onFocus="<?php rollOverFunction('No') ?>">
Then my output code is:
<?php echo $output; ?>
Thanks for the help.