$ 0 0 And if you need to exclude negative values, it would be: // Custom Validate scriptif (+event.value <= 0) event.value = "";