Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit form onchange 1

Status
Not open for further replies.

Hameedullah

Programmer
Aug 12, 2002
29
AU
I hvae a form which has a select dropdown box. Once a values is selected from the box (onchange) the form gets submitted.

It was working fine, but it just decided to stop working. All I have is this:

<select name="qty" class="formElements" id="quantity" onchange="form1.submit();">

I tried putting it in a function, but the same thing. IE complains that the object doesn't support this property or method and firefox says form1.submit is not a function.

<b>form1 is the name of the form.
 
It was working fine, but it just decided to stop working.

Forms don't decide to stop working suddenly - something must have changed, somewhere.

Do you have an element named submit, for example:

Code:
<input name="submit".../>

? If so, you will need to rename it - try "mySubmit".

Hope this helps,
Dan

[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]
[banghead]

 
Forms don't decide to stop working suddenly - something must have changed, somewhere.
I know that :)

.... but thanks. It is definitely the case. My submit button's name is "submit" I guess, I have to check.

Much appreciated.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top