Rewrite inline javascript into jQuery
<p>How do I rewrite this using jQuery instead of the onchange event?</p>

<pre><code>&lt;input name="PasswordName" type="password" id="passwordID"&gt;
&lt;p&gt;
&lt;input type="checkbox" onchange="document.getElementById('passwordID').type = this.checked ? 'text' : 'password'"&gt; Show Password
&lt;/p&gt;
</code></pre>
