change input type jquery code example
Example 1: change input placeholder text jquery
$("input[type=password]").attr("placeholder", "Type your answer here");
Example 2: change input to required jquery
$('#input').prop('required',true);
$("input[type=password]").attr("placeholder", "Type your answer here");
$('#input').prop('required',true);