PDA

View Full Version : return false problem



Rachele7
10-21-2009, 01:43 AM
hello,

with help from you guys on here i got my javascript working quite well.

However for some reason the page is now misbehaving. I did make a change to the page but i didn't touch the script bits of the page.

Basically when you click submit, it actually submits even though there is a return false; in the javascript.

I would like it to give a price without submitting the script which it was doing before.

I have pasted links to the form and script below. what have i done wrong?


javascript
http://www.surfcelive.com/validate.js


form
http://www.surfcelive.com/form.html



Thanks.

jscheuer1
10-21-2009, 03:47 AM
You changed the name of one or more of the form elements and/or removed one or more of the form elements on the page. Now the script can't find all of the ones it is looking for. That causes a script error. Once there is an error, the entire submit event, including its return value fails, the form submits.

Rachele7
10-21-2009, 05:53 PM
Thanks a lot for your help.

It's working properly now.