.joins

function GoToQuote()
        {
            var check_value=[];//定义一个数组   
            $('input[name="checkbox"]:checked').each(function () {//遍历每一个名字为interest的复选框,其中选中的执行函数   
                check_value.push($(this).val());//将选中的值添加到数组chk_value中 
            });
            alert(check_value(","));
        }

原文地址:https://www.cnblogs.com/Monica-xu/p/4262231.html