Do you have a password field that the user wants to be able to view at the click of a button? Here is the solution I came up with to handle that need…
The field…
<div class="input-group">
<input type="password" name="password" value="P@$$w0rD" placeholder="Password" id="input-password" class="form-control" required>
<span id="view-password" class="input-group-addon"><i class="fa fa-eye" aria-hidden="true"></i></span>
</div>
The javascript… Continue reading