title: send multiple value from onclick function to jquery function
body: <p>I want to send multiple data from on click function to jquery function like this code.</p>
  
  <p>When I click on my button I get <code>[object Object]undefined]</code> in alert box </p>
  
  <p>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() {
    $("#button").click(function myf(data1, data2) {
      alert(data1 + data2);
    });
  });</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;a href="#" id="button" onclick="myf('hello','word');"&gt;click&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How can I do it?</p>