This sounds easy but unable to get it to work. I need to accept a percentage number from 0 to 100 with no decimal numbers, no negative numbers. How can I do this validatation?
if ((Pcomplete == "" ) || (Pcomplete < 0 && Pcomplete > 100)) {
alert('Percentage field is required. You need to type a number between 0 and 100');
return false;
}