Hi guys,
I'm not too good when it comes to javascript & have run into a problem with a line of code.
The original line is:
which I thought would be relatively straightforward to add some additional validation too, such as:
For some reason this doesn't work & produces the word false into my e-mail form field!! I thought that the "||" was an or operater not an "&&".
Can anyone pleaase shed some light.
Thanks
I'm not too good when it comes to javascript & have run into a problem with a line of code.
The original line is:
Code:
if(f.value=='' && f.id!='email'){cf_adderr(f)}
Code:
if(f.value=='' && f.id!='email' ) || (f.value='Write Your Message Here...' && f.id!='email'){cf_adderr(f)}
For some reason this doesn't work & produces the word false into my e-mail form field!! I thought that the "||" was an or operater not an "&&".
Can anyone pleaase shed some light.
Thanks