Change input type using jQuery.
Click button the input type change text to password
<script type=”text/javascript”>
$(‘#input_text_id’).prop(‘type’, ‘password’);
</script>
Click button the input type change password to text
<script type=”text/javascript”>
$(‘#input_text_id’).prop(‘type’, ‘text’);
</script>
Question and answer is powered by AnsPress.io