[jQuery] Tip: Setting textarea value in IE7
With jQuery 1.3.2, if I use:
$("textarea").val("foo");
to set the value of the textarea tag to foo, then IE7 sometimes fails
to render the page, showing a blank white page instead. Even worse, it
will render the page if you resize the IE7 window. The fix is to use:
$("textarea").text("foo");
Note that this problem seems to be limited to IE7 - I don't have this
problem in IE6 or IE8, or with other browsers.
Hope this is helpful.
Cheers, Greg.