Show-Hide Password in TextBox with Button using jQuery

Show-Hide Password in TextBox with Button using jQuery

In this Post We Will Explain About is Show-Hide Password in TextBox with Button using jQuery With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to How to Create a Show Password Button Example

In this post we will show you Best way to implement Display Text in Password Field using Javascript , hear for Show/Hide Password Field Text with jQuery and Bootstrap with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Read Also:  Data Tables State save local storage in jQuery

Show Hide Password in Password TextBox with CheckBox using jQuery

In this Example,First of all Add or Include External Libs Like as a(jQuery, css etc..), and then create a simple index.php or index.html page.After that crate a simple javascript file like as a index.js or main.js, It is also add your web-application First Header Part to some priority set.After that Include your relevant CSS Class.

Read Also:  jQuery Deleting Record from MySQL Table Row in Ajax

Include External Libs

<script src="
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-beta1/jquery.js"></script>

index.html

<body>
<h1>simple Login Form</h1>
<form>
	<!-- Devloped by Pakainfo.com free download examples -->
	<label>Student Username</label>
	<input type="text" name="username" id="username"/><br/><br/>
	<label>Student Password</label>
	<input type="password" name="password" id="password"/><br/><br/>
	<button type="button" id="live_showhide" name="live_showhide">Show</button>
</form>
</body>

index.js

$(document).ready(function(){
$('#live_showhide').on('click', function(){
	var LivePassfield = $('#password');
	var LivePassfieldType = LivePassfield.attr('type');
		if(LivePassfieldType == 'password')
		{
			LivePassfield.attr('type', 'text');
			$(this).text('Hide');
		}
		else
		{
			LivePassfield.attr('type', 'password');
			$(this).text('show');
		}
	});
});

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example

Example

I hope you have Got What is Show Hide Password in Password TextBox with CheckBox using jQuery
And how it works.I would Like to have FeedBack From My Blog(Pakainfo.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(Pakainfo.com) Are Most Always Welcome.

Read Also:  Laravel Check and uncheck all checkbox using jquery

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  PHP Upload and Crop Image using jQuery Ajax
  2. Read Also:  jQuery Slide Effect toggle Direction - slideToggle Animation
  3. Read Also:  Laravel 6 display flash message on view
  4. Read Also:  Angularjs Show Hide Password in Password TextBox with CheckBox
  5. Read Also:  call to undefined function mysql_pconnect()
  6. Read Also:  how to remove header and footer in printing using javascript?
  7. Read Also:  Dynamic and Dependent Dropdown list using AngularJS with PHP
  8. Read Also:  pagination in php using ajax
  9. Read Also:  how to remove header and footer in printing using javascript?
  10. Read Also:  Angularjs Show Hide Password in Password TextBox with CheckBox