Hello
For example in editbox number 1856.63500000005
How to make show in editbox 1856.63 automatically ?
Thanks
Editbox number - 2 digits after dot number to show
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/forms.html
http://www.wysiwygwebbuilder.com/form_wizard.html
Frequently Asked Questions about Forms
-
-
- Posts: 1
- Joined: Sat Apr 11, 2020 6:51 pm
Re: Editbox number - 2 digits after dot number to show
There is no standard solution for this in HTML. This is only possible with JavaScript.
https://www.w3schools.com/jsref/jsref_tofixed.asp
https://www.w3schools.com/jsref/jsref_tofixed.asp
- BaconFries
-
- Posts: 5933
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Editbox number - 2 digits after dot number to show
This may also be of interest if you need to round up to 2 decimal points again this requires javascript.
https://stackoverflow.com/questions/118 ... -necessary
https://stackoverflow.com/questions/118 ... -necessary