jQuery Draggable Area (to drag with, not in)
I'm wondering how to drag around开发者_开发问答 a div (#container) using a different div (child div specifically #dragBar). Is there a parameter in the .draggable() function that could set a one div to drag around another?
If I'm understanding your question correctly, try using the handle
option; for example:
$("yourElement").draggable({"handle": "otherElement"});
精彩评论