Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

How to correct the operation of the up/down arrows when entering a number with 2 decimal places.

$
0
0

Link to test case: http://live.datatables.net/gasituho/1/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Problem 1:
When using the up/down arrows with increment of "1.00", it does not put the decimal place "x,00". How can I add the leading zeros during each increment. Example:
0.00
1.00
2.00
3.00

Problem 2:
When I use the property
attr: {
type: "number",
}
By entering the digits manually without using the up/down arrow, it also allows you to enter text manually.

As I block the text entry and only allow numbers from 0-9.


Viewing all articles
Browse latest Browse all 3740

Trending Articles