Re: [PHP] jquery fill select option value
[email protected] (Ashley Sheridan)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
iccsi <[email protected]> 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