$()有2个参数,一个是选择器,一个是作用域。
要和$("xxxx,xxx")区分。通常意义下的$('xxxx')其实是默认了第二个作用域。完整说应该是$('xxxx',document)
$("#select1").dblclick(function(){
var $option=$("option:selected",this);//在select1中选择selected的option
$option.appentTo($("#select2"));
})

相关文章:

  • 2022-02-13
  • 2022-01-28
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2021-09-19
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2021-06-28
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案