Bug Tracker

Modify

Ticket #1732 (closed bug: wontfix)

Opened 6 years ago

Last modified 6 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 6 years ago by john

  • Priority changed from blocker to major
  • Status changed from new to closed
  • Resolution set to wontfix

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.