
正文
jquery 获取多选select的文本中并拼接成字符串
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
//拼接产品字符串
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(",");








