I\'m trying to dynamically update the HTML5 placeholder
attribute of a text field using jQuery.
$(\"textarea\").attr(\"placeholder\", \"New plac
If you are using Firebug I can assume you are using Firefox, and Firefox doesn't yet support placeholder
attribute in the input fields itself.
Placeholder feature detection
I just tried on Chrome for Mac and it supports placeholder text on textareas (and changes via javascript)
2015 Update: sometimes I gain reputation for this answer, so I want to clarify that this was accepted as correct because at the time Firefox 3.6 didn't support placeholder attribute. Release 4 then added support ("fixed the issue" wouldn't have been fair) so the code of OP works as expected since then.