I have a div
with a hidden child. Clicking in the div
will toggle the visibility of the child. This works well.
Now the user wants to select some text in the child. Dragging the selection works but as soon as the mouse button is released, the div
closes (because of the inClick
handler).
If possible, I'd still like to be able to close the div
from anywhere in the child because the child can be quite large (hundreds of lines, so it would be tedious to scroll to the div
to toggle the child).
Needs to work with IE6+ and all sane browsers. I can't use jQuery directly :-( but I can copy code from jQuery so if jQuery had a solution, I clone it.
Suggestions?