title: How to call a jQuery function on button click?
body: <p>I want to call a function on button click with a dynamic parameter passed to that function.</p>
  <p><strong>HTML:</strong></p>
  <pre><code>&lt;button onclick=getvalue(val['id']):void(0);&gt;Click&lt;/button&gt;
  </code></pre>
  <p><strong>JavaScript:</strong></p>
  <pre><code>function getvalue(id) {
      alert(id);
  }
  </code></pre>