Update the input element's type attribute to "password".

Make sure to type el.type = "password";.