title: JQuery: how to removeClass on click outside of element?
body: <p>This script runs my drop-down menu by toggling the .open and .close classes on click. How can I close this drop-down menu when the user clicks outside of the menu?</p>
  
  <pre><code>&lt;script&gt;
      $(document).ready(function(){
          $("li").addClass("closed");
          $("li.sel").on("click",function(e){
              e.preventDefault()
              });
          $("#navi1 li").click(function(){
              $("#navi1 li").toggleClass("open");
              });
          });
  &lt;/script&gt;
  </code></pre>