RGBPlus,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$.fn.textToggle = function(cls, str) {
return this.each(function(i) {
$(this).click(function() {
var c = 0, el = $(cls).eq(i), arr = [str,el.text()];
return function() {
el.text(arr[c++ % arr.length]);
}
}());
})
};
$(function(){
$('.btn').textToggle(".txt","*****").click()
});
</script>
</head>
<body>
<p><span class="btn">Password</span> <span class="txt">123456</span></p>
<p><span class="btn">Password</span> <span class="txt">456789</span></p>
<p><span class="btn">Password</span> <span class="txt">789456</span></p>
</body>
</html>