Hi, how can i modify my code below to also check that the text field does not start or contain and spaces, underscores dashes etc... so it only has numbers or chars??
Kindet regards,
Brian
Code:
<script language="javascript" type="text/javascript">
function checkValue()
{
if (document.form1.VRM.value == "")
{
document.form1.SubmitButton.disabled=true;
alert('Please enter a valid UK / Irish Numberplate.');
} else {
document.form1.SubmitButton.disabled=false;
}
}
</script>
Kindet regards,
Brian