how to show selected value in html select from database using jquery -
i have html select has multiple select option enabled.i want to show values selected in database.
eg : database values 2009 or 2009,2010 or 2009,2010,2012..i mean may contain ',' or may not..
and html select is
<select id="year_selected" tabindex="14" name="year_selected" multiple="multiple"> <option>2009</option> <option>2010</option> <option>2011</option> <option>2012</option> </select>
how do jquery
on options selected add html attribute selected
, should in business.
Comments
Post a Comment