Rewrite inline javascript into jQuery
Posted
by cf_PhillipSenn
on Stack Overflow
See other posts from Stack Overflow
or by cf_PhillipSenn
Published on 2010-05-17T16:34:34Z
Indexed on
2010/05/17
16:41 UTC
Read the original article
Hit count: 116
jQuery
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>
© Stack Overflow or respective owner