Trying to combine all value from jquery.each function
问题 Look at my code, I am trying to combine all value from the jquery.each to a string like this ok,good, and then passed to ajax value. Appreciate. or array('ok','good') acceptable also var global = { "44":["onset","frequency"], "45":["onset"] }; var $val = global[44]; jQuery.each( $val, function( key ,value) { var value = $('#'+value).val(); }); var $combine = ;//not sure how to combine all value like this (ok,good), or array(ok,good) acceptable also var data= { action: 'check_first',