With Pleasure. =================================================== first post ==================================================== Im using a plugin called selectchain by Remy Sharp and modified it a bit. Right now im trying to pass only selected values of a multi select list through ajax. The following function does a bit more but im concerned with the part that says
cust_val: customer.val().join(",") This should return only selected values. This is what happens if i put it in an alert(). however when i check firebug to see what was posted it shows the entire list. I've tried alternatives like option:selected.... they all work for alet() .. but the info passed through ajax shows the entire list. please help. customer.selectChain({ target: market, url: callback_url, type: "POST", data: { ajax: true, multsel: market_selects, cust_val: customer.val ().join(",") } }).trigger('change'); ============================================= Second Post ============================================= Ok so i thought that maybe the problem had something to do with the ajax request so i tried adding the ajaxStart function. See below. $("#ddl_customer").change(function(){ $("#ddl_customer").ajaxStart(function() { cuslist = $(this).val().join(", "); }); alert(cuslist); }); $("#ddl_customer").selectChain({ target: market, url: callback_url, type: "POST", data: { ajax: true, multsel: market_selects, cust_val: cuslist } }).trigger('change'); So im trying to get all the selected values from ddl_customer in the first block of code. then pass it to cust_val in the second block of code. note that the alert(custlist) outputs what i expect. but when i check cust_val in firebug.... it outputs the entire list, not only selected values. Please Help!:(