Hey guys, 

Javascript isn't my strongest but I have the below code...

if(x.jobNo.Value != ''){
                xp = /[A-B,a-b] || [,]/;
                jobNum = x.jobNo.value;
                jobNum = jobNum.replace(/\s/g, "");
                myJobNumArray = jobNum.search(xp);
                if (myJobNumArray > -1){
message = message + '\nPlease include a numeric code only';
                }
        }

I want to exclude the comma in the xp= line when I check the input box
before submitting. I got it so it will allow comma's but not check alpha
and visa versa.


I'll keep lookin if no one knows.. 

[EMAIL PROTECTED]

Jeremy

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to