I have this code to make the password value appear in text and the input encrypted like password... but when I submit it doesn't go because it reads like it is empty, I don't know much abou JS so I don't know where to change!
<input name="pass1" type="input" value="Password" style="color:#122547; background-color:#b5ae63; border-radius:5px;" onfocus="this.style.display = 'none'; document.getElementsByName('pass2')[0].style.display = ''; document.getElementsByName('pass2')[0].focus();" />
<input name="pass2" type="password" value="" style="color:#122547; background-color:#b5ae63; border-radius:5px; display: none;" onblur="if (this.value == '') { this.style.display = 'none'; document.getElementsByName('pass1')[0].style.display = '';}" />