jQuery UI Widgets › Forums › General Discussions › Editors › NumberInput › min and max value
Tagged: jQuery Input, Number Input
This topic contains 8 replies, has 4 voices, and was last updated by Peter Stoev 13 years ago.
-
Authormin and max value Posts
-
hi all!
I have two problems:
1) The minimum value does not work using the spinButtons.
2) I set a maximum value, but if I type a number greater than the maximum, this is not reset to the maximum defined.This is the code used:
$(“#numeroMassimoRisultati”).jqxNumberInput({ width: ‘200px’, height: ’22px’, min: 1, max: 500, digits:3, decimalDigits: 0, spinButtons: true, inputMode: ‘simple’ });Hi levieu,
We don’t restrict the user’s input, but we display a validation tooltip when the entered value is not in the min-max range. See here: validation.htm
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you for answering my question.
Another question. I have verified that if the entered value is equal to the maximum value, the spinButton to decrement the number does not work. The code is exactly the same. What is wrong?
Thank you for the feedback! I confirm the reported issue and created a new work item about it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comCan you already say when the “equal to the maximum value” mentined above bug will be fixed? It’s extremely annoying.
Hi timo75,
When we resolve the “equal to the maximum value” issue, we’ll add information in the Release History.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI dont see the hint for the validation? Whats the trick to get it show up?
Hi,
For validation, you can take a look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxnumberinput/validation.htm?web. If the value is out of range, the border-color of the widget is changed to ‘red’ to point out that the value is not valid. If you enter invalid value, it will be automatically validated on blur.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.