|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
SELECT Box
Is there a way to make a form post automatically when an option from a drop-down menu is selected - without having to click a submit button?
__________________
When in doubt, ask them who know. |
|
#2
|
||||
|
||||
|
There sure is:
Code:
<html>
<body>
<form name="main" action="test.asp" method="post">
<select name="sel1" onChange="document.main.submit()">
<option>Please Select One To Submit</option>
<option>one</option>
<option>two</option>
<option>three</option>
</select>
</body>
</html>
__________________
................... ASCII and ye shall receive .................. Knowledge is the only resource on earth that multiplies when shared Support the Shemzilla Project Powered by C# |
|
#3
|
||||
|
||||
|
Lewy, you rock. Perfect solution.
|
|
#4
|
||||
|
||||
|
very nice indeed - to make it more general and not dependant on the name of the form, you can have such combo:
<select name="sel1" onChange="this.form.submit();"> |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > SELECT Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|