set placeholder in jquery code example
Example 1: change input placeholder text jquery
$("input[type=password]").attr("placeholder", "Type your answer here");
Example 2: jquery add input placeholder
$(".hidden").attr("placeholder", "Type here to search");
Example 3: change placeholder text jquery
// Changes placeholder on password type input
$("input[type=password]").attr("placeholder", "Type your answer here");