title: Outside click on Ipad device not working for a Div Close
body: <p>I am trying to close a div block if they click outside of that div in ipad , but its not working.</p>
  
  <p>Can anyone let me know what I am doing wrong</p>
  
  <pre><code>    if (IOSDevice()) // this is custom function
          {                       
              $(document).bind('touchstart',function(event){     
                  // alert(event.target.id);          
                  if(event.target.id !="MyDivId"){
                      $('#MyDivId').hide()
  event.stopPropagation();
              }
          });
  
      }
  </code></pre>