[jQuery] input type

[jQuery] input type

Hi,
You can return a text input for a password input?
Example:
$(this).attr('type','password');
Has another way that works?<br clear="all">
--
Atenciosamente,
Rodrigo Matheus