I'm trying to dynamically update the HTML5 placeholder
attribute of a text field using jQuery.
$("textarea").attr("placeholder", "New placeholder text");
From Firebug, I can observe that the placeholder
attribute is indeed changing. But in the rendered textarea
element, it stays the same. Any suggestions?
try this :
$('#inputTextID').attr("placeholder","placeholder text");