demo for http://stackoverflow.com/a/14902593/578288

answer to question "change type of input field with jQuery"

by roryokane

HTML

<input type="password" placeholder="Password" />