Hello everybody
I have a function that change a text when i change a checkbox of the form
...
(* 'num' now is no used ...)
That change this text...
when ...
Everything is okey, but when validation fails, and come back to form with all values selected and included, the "txt span" come back to default initial "170" without seeing actual value of checkbox ...
¿How can i load the javascript event when validation fails?
Thank you very much
I have a function that change a text when i change a checkbox of the form
...
function descontar(chk,ide,num) {
obj = document.getElementById(ide);
obj.innerHTML = (chk.checked ? 110 : 170)
}
...
(* 'num' now is no used ...)
That change this text...
<input id="tipo" name="tipo" type="radio" value="NORMAL" checked="checked"/>
Inscripción ordinaria <span id="txt">170</span>€</td>
</td>
when ...
<input name="asturiano" id="asturiano" type="checkbox" value="SI" onclick = "descontar(this,'txt',60);"> Asturiano?</td>
Everything is okey, but when validation fails, and come back to form with all values selected and included, the "txt span" come back to default initial "170" without seeing actual value of checkbox ...
¿How can i load the javascript event when validation fails?
Thank you very much