实现两个下拉框数据移动,追加
. 代码如下:
$('#add').click(function(){
var $options = $('#select1 option:selected'); //获取选中的项
var $remove = $options.remove();
$remove.appento('#select2');
});
. 代码如下:
$('#add').click(function(){
var $options = $('#select1 option:selected'); //获取选中的项
$remove.appento('#select2');
});
如对本文有疑问, 点击进行留言回复!!
offset、client、scroll (width,height、left,top、X,Y)
网友评论