Re: jquery fill select option value

From: Date: Sun, 22 Sep 2013 07:52:52 +0000
Subject: Re: jquery fill select option value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-322142@lists.php.net to get a copy of this message
iccsi <inungh@gmail.com> 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

« previous php.general (#322142) next »