$(document).ready(function() { // #login-box password field $(\'#password\').attr(\'type\', \'text\'); $(\'#passwo
Nowadays, you can just use
$("#password").prop("type", "text");
But of course, you should really just do this
in all but IE. There are placeholder shims out there to mimic that functionality in IE as well.