title: Passing parameters to click() & bind() event in jQuery?
body: <p>I want to pass few parameters to <code>click()</code> event in jQuery, I tried following but it's not working:</p>
  <pre><code>commentbtn.click(function(id, name){
      alert(id);
  });
  </code></pre>
  <p>And also if we use bind then how we'll do that:</p>
  <pre><code>commentbtn.bind('click', function(id, name){
      alert(id);
  });
  </code></pre>