title: Popup issue after upgrading jQuery from 1.11.1 to 3.3.1
body: <p>I was using jQuery 1.11.1 and jQuery Mobile 1.4.5, everything is working fine. Recently I have upgraded jQuery to 3.3.1. I am getting popup issue. I am getting below error when i tried to open the popup in button onlick by calling popupCaptureOptions() function.</p>
  
  <pre><code>Uncaught TypeError: e.preventDefault is not a function
      at w.Event.preventDefault (jquery-3.3.1.min.js:2)
      at w.Event.preventDefault (jquery-3.3.1.min.js:2)
      at jquery.mobile-1.4.5.min.js:7
      at i (jquery-3.3.1.min.js:2)
      at dispatch (jquery-3.3.1.min.js:2)
      at y.handle (jquery-3.3.1.min.js:2)
      at Object.trigger (jquery-3.3.1.min.js:2)
      at jquery-3.3.1.min.js:2
      at Function.each (jquery-3.3.1.min.js:2)
      at jQuery.fn.init.each (jquery-3.3.1.min.js:2)
  </code></pre>
  
  <p>My html page looks like below.</p>
  
  <pre><code> &lt;div data-role="page" id="previewscreen"&gt;
          &lt;main&gt;
              &lt;div data-role="main" class="ui-content" style="margin:0; padding:0;"&gt;
                  &lt;div id="ID_IMAGE_DIV" class="ID_IMAGE_DIV"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/main&gt;
          &lt;div data-role="popup" data-history="false" data-overlay-theme="a" data-position-to="window" id="imagePopup"&gt;
              &lt;a class="popup_refrence" href="#" data-rel="back"&gt;&lt;/a&gt;
              &lt;img id="popupImage" /&gt;
          &lt;/div&gt;
          &lt;div data-role="popup" data-dismissible="false" data-position-to="window" class="ui-content" id="ID_EXTRACTIONERRORPOPUP"&gt;
              &lt;a href="#" id="cancel" class="ui-btn ui-corner-all ui-shadow ui-btn ui-icon-delete ui-btn-icon-notext ui-btn-right"&gt;Close&lt;/a&gt;
              &lt;p class='error'&gt;Extraction Failed.&lt;/p&gt;
              &lt;div id="ID_MORETEXT"&gt;&lt;/div&gt;
              &lt;a id="ID_MORE" href="#"&gt;Read more&lt;/a&gt;
              &lt;p id="extractionfailed"&gt;&lt;/p&gt;
          &lt;/div&gt;
          &lt;div data-role="popup" id="capture_popupalert" data-dismissible="false" data-position-to="window" class="ui-content" data-overlay-theme="b"&gt;
              &lt;h4 style="text-align:center; margin-top:10px"&gt;Capture Options&lt;/h4&gt;
              &lt;hr style=" margin-top: 0;" /&gt;
              &lt;div id="back_capture" style="margin-top:5%"&gt;
                  &lt;div class="ui-grid-a"&gt;
                      &lt;a style="background-color:#00b3b3;color:white;margin-left:30px;margin-right:30px;" id="back_capture_button" class="ui-btn ui-corner-all ui-shadow"&gt;Capture Back&lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="skip" style="margin-top:5%"&gt;
                  &lt;div class="ui-grid-a"&gt;
                      &lt;a style="background-color:#00b3b3;color:white;margin-left:30px;margin-right:30px;" id="skip_button" class="ui-btn ui-corner-all ui-shadow"&gt;Skip&lt;/a&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>My javascript code is</p>
  
  <pre><code>var popupCaptureOptions = function() {
          var imgFrontElement = document.getElementById("ID_IMAGE_DIV");
          var content_width = $.mobile.activePage.find("div[data-role='content']:visible:visible").outerWidth();
          $('#capture_popupalert').css({'width':content_width*0.8});
          $("#capture_popupalert").popup("open");
          $("#back_capture").click(function() {
              capturedSide = CAPTURESIDE.CAPTURE_BACK;
              doCapture();
          });
  
          $("#skip").click(function() {
              $("#capture_popupalert").hide();
              imgFrontElement.style.backgroundColor = "white";
              Utils.showLoadingIndicator();
              if (currentModule == Module.MOBILEID) {
                  MobileIDModule.extractData(frontCapturedImage, backCapturedImage, isOnBoardingFlow, region);
              } else if (currentModule == Module.CHECK) {
                  CheckDepositModule.extractData(frontCapturedImage, backCapturedImage, isOnBoardingFlow, region);
              }
              frontCapturedImage = null;
          });
      };
  </code></pre>
  
  <p>Please help me how can solve this issue.</p>