what is the function which test if a string is an Integer or not like the method :
jQuery.isNumeric()
i want to test an input html element :
<input id='distance' type='text' />
thank you in advance
thank you for your contributions i found the answer :
if(Math.floor($('#distance').val()) == $('#distance').val() && $.isNumeric($('#distance').val()))
{
alert('yes its an int!');
}
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