HEllo Abu, the next function works only with the element “editable”, with “FormElement” doesn’t, why….
jQuery(‘input[name=”preciof”].editable’).val(Math.round(
parseFloat(jQuery(‘input[name=”precio”].editable’).val()) –
parseFloat(jQuery(‘input[name=”descuento”].editable’).val())
));
jQuery(‘input[name=”preciof”].FormElement’).val(Math.round(
parseFloat(jQuery(‘input[name=”precio”].FormElement’).val()) –
parseFloat(jQuery(‘input[name=”descuento”].FormElement’).val())
));
2 Answers
I am unable to generate this issue. I’ve prepared a working demo for you to compare with.
https://gist.github.com/gridphp/82a24aab26a7659f5585367c66678a12
Line: 45,53,87
Your Answer