I am trying to change type of input, specifically after click into input change type=\"text\" to change=\"password\".
I don\'t know why, but I can\'
If you're using jQuery 1.6, use .prop instead:
$('input#id_reg_pass').removeAttr("type"); $('input#id_reg_pass').prop('type', 'password'); $(this).addClass('exampleText').val($(this).attr('title'));
Demo: http://jsfiddle.net/z8Rj3/