//拼接产品字符串
var productArray = new Array();
$.each($("#fmeatask-subSystem").find("option:selected"), function(index, obj) {
productArray.push($(obj).text());
});
$.each($("#fmeatask-assembly").find("option:selected"), function(index, obj) {
productArray.push($(obj).text());
});
var productStr=productArray.join(",");
jquery 获取多选select的文本中并拼接成字符串
猜你喜欢
转载自www.cnblogs.com/DylanZ/p/11933395.html
今日推荐
周排行