failing to get reference to form object in Firefox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laredotornado

    failing to get reference to form object in Firefox

    Hi,

    I must be losing my mind -- I've forgotten how to get a reference to a
    form! If you look at this page ...



    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="valida teForm(this.for m);" />

    Grateful for your help, - Dave
  • Paul Lautman

    #2
    Re: failing to get reference to form object in Firefox

    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 ...
    >

    >
    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="valida teForm(this.for m);" />
    >
    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.


    Comment

    Working...