I'd need to know a little bit more before I could help you. What if any code have you used? if I could see the PDF that would also be helpful.
Based on what you've said you would need to do something like (event is the object that you put the javascript into):
Code:
//First check that it is a number...
if(isNumber(event.value)){
//...then check that it falls within x, y
if(event.value >= x and event.value <= y){
} else {
//** NOT WITHIN RANGE **//
}
} else {
//** NOT A NUMBER **//
}
//This function will check if n is a number
function isNumber(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
Bookmarks