Skip to main content

Bug Tracker

Side navigation

#1732 closed bug (wontfix)

Opened September 26, 2007 09:09AM UTC

Closed September 26, 2007 09:57PM UTC

Problem with .html() method and textarea field

Reported by: Raistlin Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: html textarea Cc:
Blocked by: Blocking:
Description

Hi!

I've got problem with html() method. Exactly with .load(), but I discovered, the problem lie in hmtl().

When I'm trying to use .html() on textarea field:

$('textarea#field').html('test');

Than in Opera is everything fine... But when I'm trying to edit textarea and next fired .html() - it simple doesn't work. Additionaly in Fx it isn't work at all.

Because .load is using .html() - it doesn't work too.

Attachments (0)
Change History (1)

Changed September 26, 2007 09:57PM UTC by john comment:1

priority: blockermajor
resolution: → wontfix
status: newclosed

Right - you can't do .html() on a text area, you must use .val(). Thus, you must write your own .load() substitute which uses .val() instead.