user3162145 user3162145 - 1 year ago 51
jQuery Question

How to Display a String like Password ****** in jQuery

Is there any way to output/display a user input like Password such as ** or small circles? let say a user inputs "Maraton" how can I represent it as * in the page not in the

? I am not talking about input type!

Answer Source
<input type="password" name="any" />

Update: Based on your comment

suppose your div where you want to show your password:

<div id="pass"></div>

Next your javascript code

name = "maraton";

var element=document.getElementById("pass");