skolind
skolind

Reputation: 1754

jQuery - Draggable, drag the container when child is dragged

I'm trying to make some nice stuff with the Draggable library in jQuery.

I wan't to make a small area of a div to be the "thing" you have to drag, to start the draggable action, and then move the whole div, and not only the small area. But I can't figure out how to do this?

Basic: Small box is dragged, make the whole parent div dragging.

Upvotes: 0

Views: 319

Answers (1)

m7o
m7o

Reputation: 921

I think this is what you are looking for:

http://jqueryui.com/demos/draggable/#handle

Upvotes: 1

Related Questions