[thelist] Trouble submitting form using javascript
David Dorward
david at dorward.me.uk
Mon Nov 19 09:18:45 CST 2007
On 19 Nov 2007, at 15:11, Daniel Kessler wrote:
> I have a form that I can use the 'submit' button to submit, but am
> having trouble using javascript to submit. I'm going to include the
> extra js function just in case it's affecting the function I'm trying
> to use. It gives the error, "Error: document. getSel.submit is not a
> function ".
Having a form element with the name 'submit' or the id 'submit' will
cause the submit property of the form to be a reference to that
element instead of a function. Rename the input.
You should run your HTML through a validator too.
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
More information about the thelist
mailing list