I am trying to include a regex that I used differently in the past in some validation check via JavaScript.
Below is my script:
var regOrderNo = new RegExp("\d{6}");
var order_no = $("input[name='txtordernumber']").val();
alert(regOrderNo.test(order_no));
Why not return with true if the text box txtordernumberwas a six-digit number or more?
source
share