$(document).ready(function() { // #login-box password field $(\'#password\').attr(\'type\', \'text\'); $(\'#passwo
This works for me.
$('#password').replaceWith($('#password').clone().attr('type', 'text'));