选择jquery插件:鼠标悬停时向下滑动

选择jquery插件:鼠标悬停时向下滑动,jquery,html,jquery-chosen,Jquery,Html,Jquery Chosen,我在用电脑。我想知道如何将下拉菜单滑到鼠标上方?(当然,把它滑到鼠标上) 选择类型 商业的 公寓 单身家庭 联排别墅 对于扩展表单。最困难的部分是所选的jquery不会加载页面加载上的选项。。因此,如果您可以在页面加载上添加选项,那么您可以使用如下内容: $(".chosen-container-single").hover(function(){ $(this).addClass("chosen-with-drop"); $(this).addClass("chosen-con

我在用电脑。我想知道如何将下拉菜单滑到鼠标上方?(当然,把它滑到鼠标上)


选择类型
商业的
公寓
单身家庭
联排别墅

对于扩展表单。

最困难的部分是所选的
jquery
不会加载页面加载上的选项。。因此,如果您可以在页面加载上添加选项,那么您可以使用如下内容:

$(".chosen-container-single").hover(function(){
   $(this).addClass("chosen-with-drop");
   $(this).addClass("chosen-container-active");
},function(){
   $(this).removeClass("chosen-with-drop");
   $(this).removeClass("chosen-container-active");
});

嗨,你想这样吗?好的,我已经编辑了插件,请用这个替换所选的js。非常感谢。
$(".chosen-container-single").hover(function(){
   $(this).addClass("chosen-with-drop");
   $(this).addClass("chosen-container-active");
},function(){
   $(this).removeClass("chosen-with-drop");
   $(this).removeClass("chosen-container-active");
});