Update the input element's type attribute to "password".
input
type
"password"
Make sure to type el.type = "password";.
el.type = "password";