select选项的添加删除移动
时间:2015-07-21 21:51:07
收藏:0
阅读:319
function selectAdd(selectId,value,text){
$("#"+selectId).append("<option value=‘"+value+"‘>"+text+"</option>");
}
function selectDel(selectId){
$("#"+selectId+" option:selected").remove();
}
function selectClear(selectId){
$("#"+selectId+" option").remove();
}
原文:http://www.cnblogs.com/minlorry/p/4665503.html
评论(0)