Is there away to make sure that all digits inside a INPUT#barcode start with 9344 and has 13 digits in it?
I really need to do this before the form is sent, as I want to use a required as I have a red thumb inside the input box if they have not filled it in.
demo @ http://www.vipcashback.com (use to be incard.com)
This regular expression should do the trick:
where ‘val’ is $(‘#barcode’).val()