title: Calling the same function twice using plain javascript and jquery, at the same time
body: <p>What problems could arise from executing this piece of code? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function function1() {
    $(document).ready(function() {
      $("#button").click(function() {
        $("button").hide();
      });
    });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;button id='button' onclick='function1()'&gt;Okay&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>