By reading the doc a lot of answers one can find, hmm...

http://docs.jquery.com/UI/Draggable#option-handle

To master jquery, master the api you must.

Michel Belleville


2009/10/27 Thai Dang Vu <tdan...@gmail.com>

> Suppose that I have this div
>
> <div id='draggable'>
>   <div id='header'>xxxxx</div>
>   <div id='content'>zzzzzzzzzzz</div>
> </div>
>
> I use jQuery UI draggable to make the div 'draggable' draggable
>
> $('#draggable').draggable();
>
> Then I can press the mouse anywhere in the 'draggable' div and drag that
> div.
> Now I want to drag the 'draggable' div only when I press the mouse on the
> 'header' div. How can I do that?
>
> Thank you.
>

Reply via email to