function setType(obj,cell){
var _text = KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲"+cell).val(); …(obj).hasClass(“selected”)){
$(obj).removeClass(“selected”);
var _textArr = _text.split(’,’);
if(_textArr.length == 1 ){
KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲"+cell).val(_te…(obj).attr(“c_val”),’’));
}else{
if(_textArr[0]==$(obj).attr(“c_val”)){
KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲"+cell).val(_te…(obj).attr(“c_val”)+",",’’));
}else{
$ ("#"+cell).val(_text.replace(","+$(obj).attr(“c_val”),’’));
}
}
}else{
$ (obj).addClass(“selected”);
if(_text!=’’){
$ ("#"+cell).val(_text+","+$(obj).attr(“c_val”));
}else{
$ ("#"+cell).val($(obj).attr(“c_val”));
}
}
}
自定义多选设置 input的value值
最新推荐文章于 2022-11-10 16:20:15 发布