Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001011

Re: [PHP-DB] Drop-down menus From: Stas Trefilov (stas.t <email protected>)
Date: 01/09/01

Hello, "Julio Cuz, Jr."!
You wrote:

> Hi--
>
> Let's say I have two (2) drop down menus (time-in &
> time-out, for example),
> each one has the same options (7:00 a.m., 7:30 a.m., 8:00
> a.m., 8:30 a.m,
> 9:00 a.m., so on...).

Say this is your html:
<SELECT NAME=time_from>
<OPTION VALUE=0700>7:00<OPTION>
...
</SELECT>

<SELECT NAME=time_to>
<OPTION VALUE=0700>7:00<OPTION>
...
</SELECT>

so you got to add this onChange construction to your 1st
SELECT tag:

onChange = "time_to.value = this.value"

-- 
Piloteers do it on the road

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>