Trying to change input type attribute from password to text.
input
password
text
$('.form').find('input:password').attr({type:"text"});
Why this doesn't work?
my solution:
$('#myinput').clone().attr('type','tel').insertAfter('#myinput').prev().remove();
2.1m questions
2.1m answers
60 comments
57.0k users