SyntaxFix
Write A Post
Hire A Developer
Questions
This works for me.
$('#password').replaceWith($('#password').clone().attr('type', 'text'));