javascript - multiple select box jquery and post serialize -
i trying to send form via post multiple select box isn't being sent. how can serialize select box rest of form , send it?
here javascript using
$('#form-to-submit').empty().append($(fieldsetname).clone()); $('#form-to-submit select').val($('.fieldsetwrapper select').val()); var data = $('#form-to-submit').serialize(); $.post(url,{data,function(data,textstatus){
i fields select in post data.
the select serialize if there selections made... see
here example serialization , jsonification http://jsfiddle.net/xw2cm/1/
Comments
Post a Comment