Hello,
I have done a form with this script who is autofilling some fields:
When I fill the form for the first time, there is no problem. But when I want to change my form the three hidden fields 'je', 've' and 'sa' are not updated!
What is wrong?
Thanks for advice
I have done a form with this script who is autofilling some fields:
function calculate()
{
if ($('radio00').checked){$('je').value="SR";};
if ($('radio01').checked){$('je').value="PD";};
if ($('radio10').checked){$('ve').value="SR";};
if ($('radio11').checked){$('ve').value="BD";};
if ($('radio12').checked){$('ve').value="SV";};
if ($('radio13').checked){$('ve').value="PD";};
if ($('radio20').checked){$('sa').value="BD";};
if ($('radio21').checked){$('sa').value="SR";};
if ($('radio22').checked){$('sa').value="SA";};
if ($('radio23').checked){$('sa').value="DA";};
if ($('radio24').checked){$('sa').value="SV";};
if ($('radio25').checked){$('sa').value="PD";};
}
When I fill the form for the first time, there is no problem. But when I want to change my form the three hidden fields 'je', 've' and 'sa' are not updated!
What is wrong?
Thanks for advice