title: Function in onclick of tag <a> passing parameters
body: <p>I want to do one function to receive two parameters in jQuery, the parameter need to be configured in a link (tag ), the exemple:</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;a href="#" onclick="myfuncion(val1, val2);"&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$(function myfuncion(val1, val2) {
      // return 
  });
  </code></pre>
  
  <p>is is a good practice? How can I make its work?</p>