Apologies, fingers were quicker than the mind this morning
Code needs to be something like this :-
<form name=form1 method=POST>
<option name=one
onclick="document.form1.action='do_something1'"
;>
1</option>
<option name=one
onclick="document.form1.action='do_something2'"
;>
2</option>
<option name=one
onclick="document.form1.action='do_something3'"
;>
3</option>
<option name=one
onclick="document.form1.action='do_something4'"
;>
4</option>
<input type="submit" value=go>
</form>
Rob.
-----Original Message-----
From: 1stJavaScript@yahoogroups.com
[mailto:1stJavaScript@yahoogroups.com] On
Behalf Of Atkinson, Robert
Sent: 10 April 2006 10:09
To: 1stJavaScript@yahoogroups.com
Subject: RE: [1stJavaScript] RE: How to do submit action
through option
buttons
Simply replace your submit button with the code I gave you.
Rob.
************************************************************
***********************
Any opinions expressed in email are those of the individual
and not necessarily those of the company. This email and any
files transmitted with it are confidential and solely for
the use of the intended recipient or entity to who they are
addressed. It may contain material protected by
attorney-client privilege. If you are not the intended
recipient, or a person responsible for delivering to the
intended recipient, be advised that you have received this
email in error and that any use is strictly prohibited.
Random House Group +44 (0) 20 7840 8400.
http://www.randomhouse.c
o.uk
http://www.booksat
transworld.co.uk
http://www.kidsatr
andomhouse.co.uk
************************************************************
***********************
For a quick response, your message should include,
- A copy of the code
- A copy of any error messages
- A description of what you're trying to achieve
- A description of what's actually happening
http://www.trans4mind.com/personal_developmen
t/HTMLGuide/index.html For HTML
http://www.trans4mind.com/personal_developme
nt/JavaScript/index.html For JavaScript
You can also download the JavaScript and HTML tutorials
(Nearly 2.5 megabytes.)
A 30 day version of jsEditor is available for free download
at
http://www.trans4mind.com/personal_devel
opment/JavaScript/freeEditor.htm
--------------------------
FREE zip/unzip program:
http://www.trans4mind.com/personal_development/z
ipper/index.html
--------------------------OR go to and change your settings:
http://g
roups.yahoo.com/group/1stJavaScript/
List owner: 1stJavaScript-owner@yahoogroups.com
://groups.yahoo.com/group/1stJavaScript/
List owner: 1stJavaScript-owner@yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://g
roups.yahoo.com/group/1stJavaScript/
<*> To unsubscribe from this group, send an email to:
1stJavaScript-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|