I have the following html field for which I need to check if the input value is float or int,
<p class="check_int_float" name="float_int" type="text"></p> $(document).ready(function(){ $('.check_int_float').focusout(function(){ var value = this.value if (value is float or value is int) {
So how to check if the value is float or int in jquery.
I need to find / check both cases, be it float or int, because later, if the value was float , I will use it for some purpose and similarly for int .
source share