Now I have another question.
What if I dont want for some elements to act as a handler that are
inside it?
I'll just add a line to my first example so you can see what I mean:
<div id="dragbox">
<div id="dragbox_handler">
<div id="some_div">Blah Blah</div>
<div id="someother_div">Blah Blah</div>
<div id="not_selectable_div"></div>
</div>
<div id="something"><p>rest of the html</p></div>
</div>
So I would like to have all child elements of a handler to act as a
handler except that one (or maybe even two, three) div.
I've tried using .not inside the example you gave me but no luck
(cause I dont know where exactly to put it).
So what to add to this that will solve my issue?
.bind('dragstart',function( event ) {
return !!$( event.target ).closest
('#dragbox_handler').length;
})
Thanx.