I need to evaluate a form submission to either be
“TBD” or a number > 0 . Is there a way to do that that I’m not seeing.. here is what I have so far:
<script language="Javascript">
function validateForm(){
//Declare Variables
var aa=document.forms["form"]["irnumber"].value;
if (aa =='TBD'){
return true;
}else if (parseInt(aa) < 1 || aa==null || aa=="") {
alert("IR Must Be A Number Or \"TBD\" ");
return false;
}
</script>
Any help is very much appreciated.
or