|
Prev: If value is in a list
Next: Empty <span> + onlick
From: laredotornado on 22 Apr 2008 16:22 Hi, I must be losing my mind -- I've forgotten how to get a reference to a form! If you look at this page ... http://www.dhlovelife.com/v2/knowdummy/magcommunity_post.php I'm trying to submit the form after validating it. But, on PC Firefox, I repeatedly get the error "f.submit is not a function" when I try and submit the form using "f.submit()" where f is passed in from the submit button, like so <input type="button" value="Submit" name="submit" onClick="validateForm(this.form);" /> Grateful for your help, - Dave
From: Paul Lautman on 22 Apr 2008 17:30 laredotornado wrote: > Hi, > > I must be losing my mind -- I've forgotten how to get a reference to a > form! If you look at this page ... > > http://www.dhlovelife.com/v2/knowdummy/magcommunity_post.php > > I'm trying to submit the form after validating it. But, on PC > Firefox, I repeatedly get the error "f.submit is not a function" when > I try and submit the form using "f.submit()" where f is passed in from > the submit button, like so > > <input type="button" value="Submit" name="submit" > onClick="validateForm(this.form);" /> > > Grateful for your help, - Dave Did you not think of searching Google for javascript form validate obviously not. Use an onsubmit handler in the form tag.
|
Pages: 1 Prev: If value is in a list Next: Empty <span> + onlick |