I'm doing a module that tells me the number of templates that have delivered a total of 100.
I want that when entering a number in ENTREGADAS
I subtract in NO_ENTREGADAS
that is worth 100, that is:
Example:
- if% co_of% is worth 0,% co_of% will be 100
- yes ENTREGADAS
, NO_ENTREGADAS
;
- ENTREGADAS= 25
, NO_ENTREGADAS= 75
So far I have something like this:
function entregaplanillas() {
if (document.form1.ENTREGADAS.value = 0) {
document.form1.NO_ENTREGADAS.value = 100;
}
}
<input id=" ENTREGADAS " type="number" onblur="entregaplanillas();"></input>
<input id=" NO_ENTREGADAS " type="number"></input>