₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,327,372 members, 8,430,705 topics. Date: Saturday, 20 June 2026 at 10:58 PM

Toggle theme

Marin63's Posts

Nairaland ForumMarin63's ProfileMarin63's Posts

1 (of 1 pages)

WebmastersRe: Let's Play Around With Some Javascript by marin63(op): 6:42pm On May 07, 2015
hmm, lemme post mine then.

HTML MARKUP:

<html>
<head>
<title>Toggle Password Visibility</title>
</head>

<body>
<input type="password" placeholder="Insert Password" id="password">
<input type="button" value="Show Password..." id="button" onclick="visibility()">
</body>

</html>



JAVASCRIPT CODE:

function visibility(){

var type = $('#password').attr('type');

if(type == 'password'){
$('#password').attr('type', 'text');
$('#button').attr('value', 'Hide Password...');
}else if(type == 'text'){
$('#password').attr('type', 'password');
$('#button').attr('value', 'Show Password...');
}

}
WebmastersLet's Play Around With Some Javascript by marin63(op):
I just took on a lesson and came of with something nice. Let's see how you can achieve this little snippet.
QUESTION: Create an input password with toggling ability from asterisk to normal text... I will post mine immediately after the first comment.
WebmastersRe: Assistance needed on My Website by marin63(op): 2:25pm On May 04, 2015
thanks for your priceless reply, the reason for creating that site is not the monetary aspect for the now. I just want to carryout a project to enhance my ability. I had been doing it for two years now and I needed to work with others to have more ideas. reading ur comment I believe there is a lot I can get from you other than coding itself. this is my number (08122853957) or you can drop urs so I can contact you...
WebmastersAssistance needed on My Website by marin63(op):
I started a personal project some months ago by building a messaging system (www.promptchat.quadhay.com) and at the juncture I feel more is needed, and is like am running out of ideas. So am in need of suggestions and ideas, please check the site tru the link provided and comment if you will be of help. THANKX A MILLION TIMES

1 (of 1 pages)