I have i error in my code:
my code is this:
var a = document.F1.Efectivo.value;
console.log(a);
if (a == 0)
{
alert(‘Cuando sea grande, quiero ser jardinero’);
}
but when i see the javascript console, i get this error:
index.php:7034 Uncaught TypeError: Cannot read property ‘value’ of undefined
at sc_efectivo_onchange (index.php:7034)
at sc_pdv_impuestos_ventas_liquidacion_efectivo_onchange (index.php:5985)
at HTMLInputElement. (index.php:5813)
at HTMLInputElement.dispatch (jquery.js:3)
at HTMLInputElement.q.handle (jquery.js:3)
I have no idea wht this error appears if a similar example is found in the example in the scriptcase documentation