>From http://docs.jquery.com/UI/Draggables/draggable#options

cancel
"Prevents dragging if you start on elements of the specified type(s).
Default: ['input', 'textarea', 'button', 'select', 'option']."

handle
"Restricts drag start click to the specified element. Default value:
draggable element."

So you can use cancel to specify the child element as one you don't want to
be one of the draggable handles for the parent, or use handle and specify
some other child element that should be the only child that's draggable.

For examples, see the 2nd and 3rd demos on this page:

http://dev.jquery.com/view/trunk/ui/demos/functional/#ui.draggable

- Richard

On Wed, May 14, 2008 at 8:54 AM, jakoob <[EMAIL PROTECTED]> wrote:

>
>
> Hi,
>
> I have divs nested inside each other. The most parent div listens for mouse
> clicks. My problem is when I turn one div to a draggable object, its child
> is no longer is clickable. Here is a quick model:
>
> div01 (I am listening to clicks)
> -> div02 (draggable)
> -> -> div03 (problem: when div02 is draggable, this is not clickable)
>
> A quick example of the working code is over at fluidia.linowski.ca. Draw
> two
> objects inside one other to, and try to change between them to see what I
> mean.
>
> Any help would be appreciated. Thanks
> Jakub
>
>
> --
> View this message in context:
> http://www.nabble.com/draggable-kills-children%27s-events--tp17230381s27240p17230381.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>

Reply via email to