jQuery动态添加删除select项(实现代码)
代码如下:// 添加function col_add() { var selObj = $(“#mySelect”); var value=”value”; var text=”text”; selObj.append(“”+text+””);}// 删除function col_delete() { var selOpt = $(“#mySelect option:selected”); selOpt.remove();}// 清空function col_clear() { var selOpt = $(“#mySele
用户评论