title: Object doesn't support property or method 'closest'
body: <p>I just got the info that my jQuery function is not working on IE nor Edge. In the console I have the message:</p>
  
  <p><strong>Object doesn't support property or method 'closest'</strong></p>
  
  <p>This is the jQuery:</p>
  
  <pre><code>$('body').on('change', 'select', function (event) {
      if(event.target.id.indexOf("couche") &gt;= 0) {
          $.ajax({
              url: "{{ redir2 }}",
              type: "POST",
              data: {
                  ident: event.target.id,
                  value: event.target.value,
                  iscouche: "True"
              },
          }).done(function (msg) {
              if(msg.nothing == 1) {
                  var what = event.target.closest('tbody');
                  $(what).find("tr:gt(0)").remove();
              } else {
                  var add = event.target.closest('tr');
                  var toremove = msg.toremove.split(" ");
                  for(var i = 0; i &lt; toremove.length; i++) {
                      if(toremove[i].length &gt; 0) {
                          jQuery(toremove[i]).remove();
                      }
                  }
                  jQuery(add).after(msg.ret);
              }
          });
  
      } else {
          $.ajax({
              url: "{{ redir2 }}",
              type: "POST",
              data: {
                  ident: event.target.id,
                  value: event.target.value,
                  iscouche: "False"
              },
          }).done(function (msg) {});
      }
  });
  </code></pre>
  
  <p>Can someone tell me if there's a fix for that?</p>