¡@

Home 

2014/10/16 ¤W¤È 12:02:23

jquery Programming Glossary: catlist

Dynamically add options to select with ajax

http://stackoverflow.com/questions/13726472/dynamically-add-options-to-select-with-ajax

.change function .post '.. includes ajax.php' taglist this .find option selected .attr 'value' function data #catlist .html data.catlist A PHP function fillselecteditmultiple I've written populates a sting of the following format options.. .post '.. includes ajax.php' taglist this .find option selected .attr 'value' function data #catlist .html data.catlist A PHP function fillselecteditmultiple I've written populates a sting of the following format options ' option value 1 Option.. mysql_query select catid from category_tags where id ' . _POST 'taglist' . ' rowcat mysql_fetch_array catresult catlist ' select name cat_id size 5 multiple id cat_id ' catlist . fillselecteditmultiple 1 0 rowcat 'catid' catlist . ' select..