I could not find the answer, so I ask here. I currently do not have any touch devices, so I can not test it.
The following code hides all subcontainers in the container if it is clicked outside.
$(document).mouseup(function(e) { var container = $('#container'); if (!container.is(e.target)
Does this work on touch devices or is there any equivalent mouseup for touch devices?
jquery mouseup
Rafcio kowalsky
source share