jQuery.isNumeric( value ) Returns: Boolean
Description: Determines whether its argument is a number.
-
version added: 1.7jQuery.isNumeric( value )
-
valueType: PlainObjectThe value to be tested.
-
The $.isNumeric()
method checks whether its argument represents a numeric value. If so, it returns true
. Otherwise it returns false
. The argument can be of any type.
Example:
Sample return values of $.isNumeric with various inputs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
|