Rewrite inline javascript into jQuery
- by cf_PhillipSenn
How do I rewrite this using jQuery instead of the onchange event?
<input name="PasswordName" type="password" id="passwordID">
<p>
<input type="checkbox" onchange="document.getElementById('passwordID').type = this.checked ? 'text' : 'password'"> Show Password
</p>