Wijmo UI for the Web
validateNumber Method
wijmo.input Namespace > IFormatValidateLib Interface : validateNumber Method
The numeric value to validate.
The smallest number to accept.
The largest number to accept.
The culture that the validation library uses.
Validate the string value according to the specified format string.
Syntax
var instance; // Type: wijmo.input.IFormatValidateLib;
var returnValue; // Type: bool

// Parameters
var value; // Type:  string
var minValue; // Type:  number
var maxValue; // Type:  number
var culture; // Type:  string

returnValue = instance.validateNumber(value, minValue, maxValue, culture);
function validateNumber( 
   value : string,
   minValue : number,
   maxValue : number,
   culture : string
) : bool;

Parameters

value
The numeric value to validate.
minValue
The smallest number to accept.
maxValue
The largest number to accept.
culture
The culture that the validation library uses.

Return Value

Returns a Boolean value indicating whether the numeric value falls within the specified range.
Example
$.wijinputcore.validateNumber("123,45.6", 100, 100000);   // returns: true
Remarks
For more information, see Validation Function Library.
See Also

Reference

IFormatValidateLib Interface