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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…