To validate that the input field contains a numeric value I'm using the isNumeric() method of jQuery:
$.isNumeric(value);
This works fine for most of the cases, but the following example fails:
$.isNumeric("0.");
This returns true while it's not a numeric value.
Is there a better way of such validation without using any other plugin?
Thanks.
The argument can be of any type.api.jquery.com/jquery.isnumeric