Menu
Hi,
I am trying to establish a form validation upon pressing submit. All is fine so far except a little problem. For one entry, I would like to have people to enter something like “BB0000000” where only the digits (“0”) can vary. I just do not know how to perform such a validation, meaning how to check that the input starts with “BB” and is followed by seven digits… Can you help me on this one ?
So far, I have this but I figure it cannot help me here…
[code=html] if (x.blabla.value == “”) {
alert (“Please, select a name!”);
thanks in advance !