Skip to main content

Bug Tracker

Side navigation

#10748 closed bug (invalid)

Opened November 10, 2011 02:12PM UTC

Closed November 25, 2011 08:08AM UTC

Firefox 7 doesn't work well with property val() of textareas

Reported by: Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

I've a textarea with id="performance" and when I make:

var perf = $('#performance').val() the value returned is '[object Performance]'.

This thing happens only with Firefox 7.

I've tried with Explorer, Chrome and other version of Firefox and result it's correct.

Is a Firefox's bug or a jquery bug?


Attachments (0)
Change History (3)

Changed November 10, 2011 02:30PM UTC by anonymous comment:1

The problem is that the variable that contains the value must have a different name from the id.


name = $('#name').val()

name = '[object Name]';

n = $('#name').val()

n contains the correct value of textarea with id name

Changed November 10, 2011 03:04PM UTC by timmywil comment:2

component: unfiledattributes
owner: →
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: Open the link and click to "Fork" (in the top menu) to get started.

Changed November 25, 2011 08:08AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!