title: Jquery click not working with ipad
body: <p>we have a web application which is using Jquery blockUI to open a pop up and do some action. All of this works fine on Safari, and IE 8. problem is with Ipad. none of the actions in pop up are responding. it just stays on that page. even close doesnot work.
  do we need to add anything else?
  here is the code that opens a page and click event for close.</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
    $.ajaxSetup( {
             cache:false
     });
  
          $("#sendInviteDiv").load("invite.htm?action=view&amp;pid="+pid);
              $.blockUI({ message: $('#sendInviteDiv'),
                  centerY: 0,
                      css: {
                  top:  ($(window).height() - 550) /2 + 'px',
                          left: ($(window).width() - 870) /2 + 'px',
                          width: '870px'
                  }
              });
              //var ua = navigator.userAgent;
              //var event = (ua.match(/iPad/i)) ? "touchstart" : "click";
              //alert(ua);
  
              $('#closeInvite').click($.unblockUI);
  
      $('#inviteBtn').click(function() {
  //script to load 
         //setPositionDetails('${formName}','inviteBtn');
  
         });
  }
  
  
  });
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>appreciate pointers.</p>
  
  <p>javascript is turned on and popups are allowed in Ipad Safari settings. </p>