Re: jquery fill select option value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




iccsi <inungh@xxxxxxxxx> wrote:
><select id="mark" name="mark">
>  <option value="">--</option>
>  <option value="bmw">BMW</option>
>  <option value="audi">Audi</option>
></select>
>
>I use above code to have my select drop down on the form and would like
>to 
>use jQuery to fill option value on change event.
>I would like know is it possible to do, if yes, any hint or example
>code at 
>server site is appreciated,
>
>Your help and information is great appreciated,
>
>Regards,
>
>Iccsi, 

Yes it is possible but a) not at server side because JavaScript is run on the browser, and b) this is a PHP list not a JavaScript list.

Saying that, why aren't you populating it on the server side with PHP? 

Thanks,
Ash

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux