Try this. Please note that the "===" is placed there on purpose.
function isInteger(value) {
if ($.trim(value) === "") { return true; }
if ((parseFloat(value) == parseInt(value)) && !isNaN(value) && parseInt(value) > 0) {
return true;
} else {
return false;
}
}