function showpsw() {
var x = document.getElementById("#jform_password1");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
function showpsw() {
var x = document.getElementById("#jform_password2");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
<a onclick="showpsw()"><i class="icon-eye"></i></a>
.sclogin-passwd {
float:left;
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.