jQuery('input[name="preciof"].FormElement')

QuestionsjQuery('input[name="preciof"].FormElement')
pierremata asked 6 years ago

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
Abu Ghufran Staff answered 6 years ago

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

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
pierre mata answered 6 years ago

hello, i found a way to “skip” this error, if you change the name of the function, lets say “xxx”, works….

Your Answer

11 + 1 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?