If you want to check the number to be integer, you can use this function:
isInt = function(field) {
if (+field != field || field.indexOf(".") != -1) {
return false;
} else {
return true;
}
}
If you want to check the number to be integer, you can use this function:
isInt = function(field) {
if (+field != field || field.indexOf(".") != -1) {
return false;
} else {
return true;
}
}