How to pass parameter to click event in Jquery
<p>I want to change the following JS to Jquery. But I don't know how to pass parameter to click event in Jquery. Can anyone help me, thanks!</p>

<pre><code>&lt;script type="text/javascript"&gt;

function display(id){

    alert("The ID is "+id);
    }
&lt;/script&gt;

&lt;input id="btn" type="button" value="click" onclick="display(this.id)" /&gt;
</code></pre>
