|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
is there anyway to submit a form by clicking on an option in a drop down select menu... instead of clicking a submit button...?
|
|
#2
|
|||
|
|||
|
I am not sure whether you will be able to submit a form but here is a link to a page which has some code links to another page from a select menu.
Perhaps with a little imagination you could add some code which will submit the form. Hope it helps.. Falcon. |
|
#3
|
|||
|
|||
|
Doh!
Sorry forgot the link, here it is.. http://www.webdeveloper.com/library/qanda.html#dropdown Falcon. |
|
#4
|
|||
|
|||
|
Yes you can, but only in IE4+ and NS3+ with the following JS-event
<SCRIPT LANGUAGE="JavaScript"> function getURL(form) { // get the value of the selected option var url = form.selURL.options[form.selURL.selectedIndex].value; // go there location.href = url; </SCRIPT> <FORM> <SELECT NAME=selURL onChange="getURL(this.form);"> <OPTION VALUE="someURL">blah <OPTION VALUE="otherURL">blahblah </SELECT> </FORM> But to be sure everyone with older browsers can use it add a button (with other javascript you can hide it from showing in newer browsers, though) Peter |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > links "input type = select" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|