auto_numeric_js
auto_numeric_js copied to clipboard
Empty value always returns 0.00
Hi there,
Can i kindly ask you if there is an option to return to en empty field when the value is zero (always returns to 0.00)
I'm bit off development of this library at the moment. Do you use latest versions from http://decorplanit.com/plugin/ ? Bob Knothe (original author) continues on improving library. In fact, there is beta 1.8.0 http://www.decorplanit.com/plugin/autoNumeric-1.8.0-beta.htm
By the way: what did you exactly mean? '0.00' always rendered, or returned by autoNumericGet ?
Dear ndamofli;
Are you referring to the value being returned from autoNumericSet function? This function does not return an empty string, you will need to test and override the value.
Bob
On 7/3/2012 9:03 AM, ndamofli wrote:
Hi there,
Can i kindly ask you if there is an option to return to en empty field when the value is zero (always returns to 0.00)
Reply to this email directly or view it on GitHub: https://github.com/funny-falcon/auto_numeric_js/issues/4
Thank you guys so much for the response. I am doing calculations (sum) in a form, and even if i don't enter numbers for a column, i still get the sum (0.00) ex. $('#BSUMa').autoNumericSet(B1a + B2a + B3a + B4a); Even if i have blank fields (and vars) for B1a,B2a,B3a,B4a, i still get 0,00 at the result #'BSUMa' field) I would prefer to have a blank sum field... Anyway your code is excellent !
We are working on a major update and hope to have it posted within the next couple weeks (http://www.decorplanit.com/plugin/).
Do you have a regular email address that I can notify you on.
Mine is [email protected]
Thanks,
Bob
On 7/3/2012 9:44 AM, ndamofli wrote:
Thank you guys so much for the response. I am doing calculations (sum) in a form, and even if i don't enter numbers for a column, i still get the sum (0.00) ex. $('#BSUMa').autoNumericSet(B1a + B2a + B3a + B4a); Even if i have blank fields (and vars) for B1a,B2a,B3a,B4a, i still get 0,00 at the result #'BSUMa' field) I would prefer to have a blank sum field... Anyway your code is excellent !
Reply to this email directly or view it on GitHub: https://github.com/funny-falcon/auto_numeric_js/issues/4#issuecomment-6736270