Arjun Panwar

Arjun Panwar

  • NA
  • 10.6k
  • 5.9m

Change every character in a div to a specific character using javascript

Mar 5 2012 12:13 AM
Hi,

I am making a page in which many passwords are listed in a div which has an id of pass. I want to use JavaScript to show asterisk(*) in place of every character in that div and i also want to be able to toggle is which means by default when I load the page the passwords should be asterisk but as soon as I click an image the asterisk go away and my passwords should show up can any one help me.

Thanks