简体   繁体   中英

Draggable not working in jQuery for current selected Div

A simple thing but not working i don't know what is the problem.

jQuery(topbar).mousedown(function(event){       
       var sel_to=jQuery(event.target).parent().attr("id");
       jQuery("#sel_to").draggable();
});

看起来您想要更接近的东西:

JQuery("#" + sel_to).draggable();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM