Good, I'm blocked to perform an action with jQuery.
I have this:
<div>
<p>
Password: <span id="passwordServer">*********</span>
<b><i id="togglePasswordServer" class="unhide icon"></i></b>
</p>
</div>
<script>
$(document).ready(function(){
var passwordServer = "123456";
$("#passwordServer").text(passwordServer);
});
</script>
Basically what I want to do is the password appear hidden as long as it has not been pressed on the label and I've been investigating and it shows that with the function longclick
but it plays with plugin external to < em> jQuery .
The password that is stored in the variable passwordServer
would not be seen until the i
is kept with id="togglePasswordServer
; if you stop pressing, it returns to show the *****
.