Trying to change input type attribute from password to text.
input
password
text
$(\'.form\').find(\'input:password\').attr({type:\"text\"
It's 2018 and jQuery does support this feature now. The following will work:
$('.form').find('input:password').attr("type","text");