I am using Jquery to check to see if something isNumeric. How do I check to see if it is not numeric?
if (IsNumeric($('#Amount').val())) { .....
I put a ! before IsNumeric but that did not work.
Your call to the function is a little off. It should be jQuery.isNumeric()
or $.isNumeric()
, so your code would look this:
if(!$.isNumeric($('#Amount').val())) {
// do something
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With