Thanks Jeff
That's good thank you.
I have gone for this instead.
<script language="JavaScript" type="text/javascript">
<!--
function Format2(lstr){ // lstr is the variable passed to the function
if (/^[A][ ][A-Z0-9][ ][A-Z0-9][ ][AB][ ]$/i.test(lstr.value)){
lstr.value =...
I am trying to validate a form field. The field can have a maximum of 4 characters. The first character is always the letter 'A', the fourth character can be either the letter 'A' or the letter 'B' but nothing else. I also need a mask on the field like this A _ _ _
I have this code, but I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.