Hi everyone,
I am trying to incorporate a regular expression i have used in the past in a different manner into some validtation checking through javascript.
The following is my script:
var regOrderNo = new RegExp("\d{6}");
var order_no = $("input[name='txtordernumber']").val();
alert(regOrderNo.test(order_no));
Why would this not come back with true if the txtordernumber text box value was a six digit number or more?
Thanks in advance, Billy