Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add the option "show password " to asp.net login control

I used asp.net login control in ored to log my site the issue is that I want to add an opption to show the password (instead of asterisk) but I have no access to the password textbox so I can't change its textmode.

Any Idea?

like image 355
Moshe Avatar asked Aug 14 '11 16:08

Moshe


1 Answers

Show password option by using Checkbox

onchange="document.getElementById('password').type = this.checked ? 'text' : 'password'"

Even we can use the onclick event of the checkbox. Refference code

like image 130
Kesavarapu Venkatesh Avatar answered Oct 10 '22 21:10

Kesavarapu Venkatesh