jquery - Getting the masked value of a password field? -


i've got normal password field "get" masked value - yep, ugly ********** obfuscated value.

html:

<input type="password" name="password" value="" id="password"></input> 

js/jq dom:

$("#password").val(); // password in cleartext 

if mean want string contains * number of characters inserted in password field do:

var password = $("#password").val(); password  = password.replace(/./g, '*'); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -