Hi, having loads of trouble with some javascript validation, nothing seems to be working for me!
This is what has been set out as to what has to be done:
- the length of the input is bigger than 0 but not greator than 14
- only letters a-z "-" and space
- the "-" and space must be entered
- the "-" or space must not be either the first or last letter entered
- "-" must not be the immediate neighbour to a space
- "-" or space must not be adjacent
the data is entered through a normal textfield.
Any help would be greatly appreciated
Thanks for your help