attr placeholder code example Example: change input placeholder text jquery $("input[type=password]").attr("placeholder", "Type your answer here");