I am going to display the current password of the user like
Current Password : ******
I want the exact number of asterisk’s(*), as the number of the password characters. Also it should be safe that it should not visible at View Source. Is any jQuery plugin available? or can we achieve it through JavaScript?
I’ve voiced my disapproval and warnings… So with all that said simply count the number of characters in the password and echo that many
*s in the view. There’s no need for Javascript.