Re: How to make a SELECT submit without a BUTTON?
| From: | De Necker Henri | Date: | Wed, 07 Nov 2001 09:52:48 +0000 |
| Subject: | Re: How to make a SELECT submit without a BUTTON? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73712@lists.php.net to get a copy of this message | ||
Thank u Dav & Jason.
I just wanted that 'OnChange' value!
:)
Javascript:
<form name="hello" action="...">
<select name="..." OnChange="hello.submit()">
...
</select>
</form>
"De Necker Henri" <deNeckerH@ford.co.za> ha scritto nel messaggio
news:3A8ED7A62794D311AA7700508B6164EC08DCA378@SCPTS01...
> Hi there.I just want some ideas of how to make a Select in html submit a
> single value to the same page without using a button.
> I have two different dynamiclly Select's whose values depends on this one
> select.A user only has to select an value then the other two select's
values
> must change without any buttons!
> this is what i have tried :
>
> <form action = "test_dummy.php" method="post">
> <select name="dropDown1" size="1">
> <option selected
> value="0">
> --- none ---</option>
> <option value="Bodyshop">Bodyshop</option>
> <option value="Material_supply">Material supply</option>
> <option value="Paint_shop">Paint shop</option>
> <option value="Vechile_assembly">Vechile assembly</option>
> <option value="Warehouse">Warehouse</option>
> </select>
> </form>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net