Bug Tracker

Opened 13 years ago

Closed 13 years ago

#1732 closed bug (wontfix)

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.

Change History (1)

comment:1 Changed 13 years ago by john

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.

Note: See TracTickets for help on using tickets.