I want to enable a control based on the user input.. if user click yes i want to display it else hide it.. so i called a function and assigned value based on that i want to display the control..
This is the php Function
<?
$hscEnable="false";
function HSControl($val)
{
if($val=="yes")
{
return("true");
}
else
{
return("false");
}
}
?>
I have called it from html form
<input type="radio" name="twelthStudiedStatus" value="no" id="twelthStudiedStatus_1" checked onClick= <? $hscEnable=HSControl("no"); ?> >
<? if($hscEnable=="true"){ ?>
<tr>
<td>Percentage :</td>
<td><input type="text" name="twelthPercentage" /></td>
</tr>
<? } ?>