hi all,
I had to join this forum to ask for some help as I’m on my own in the office and my brain is not working.
I’ve got a little JS experience but am still learning , thats why I’m stuck on what should be something simple but i need help.
I have a form checking function but need to change it a little.
First part:
if (document.myForm.postcode.value == “”){
alert(‘Please enter a postcode’);
return false;
i need to change this part so I can check for a LETER at the start of the string entered in to the INPUT box.
Second part:
if (document.myForm.contact.value == “telephone”){
if (document.myForm.phone.value == “”){
alert(‘If you want us to contact you via telephone, please provide your phone number’);
return false;
}
I want to change this so that a number must be entered and it must start with a 0.
can anyone help, its been a long day.
thanks