1.jq获取checkbox被选中的值
$("#enterpriseType input[type='checkbox']").each(function () { //checkbox复选框选择 if ($(this).is(":checked")) { opt = "选中"; companyType=$(this).val() console.log(companyType) } else { opt = "未选中"; } }); 2.jq获取option被选中的值 var provinceName = $("#provinceName option:selected").val(); //select选择 var cityName = $("#cityName option:selected").val(); var countyName = $("#countyName option:selected").val(); var where=provinceName+cityName+countyName console.log(where)