I am checking if my number coming from a input field is in range
function timeCheck(){
var time = $.trim($('#enterTime').value());
Number.prototype.between = function(min,max){
return this > min && this < max;
};
if ((time).between(1,9)){
alert("test");
}
}
But somehow it does not work .. the alert is never triggered
Thanks for help and fast answer