Answers for "show password using javascript"

0

show password using javascript

<script>
$(document).ready(function(){
    $('#checkbox').on('change', function(){
        $('#password').attr('type',$('#checkbox').prop('checked')==true?"text":"password"); 
    });
});
</script>
<input type="password" id="password"> 
<input type="checkbox" id="checkbox">Show Password
Posted by: Guest on September-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language