Skip to main content

Bug Tracker

Side navigation

#3064 closed bug (invalid)

Opened June 19, 2008 02:53PM UTC

Closed August 14, 2008 09:19PM UTC

erratic results with .val() assignment

Reported by: jkeane Owned by:
Priority: minor Milestone: 1.3
Component: core Version: 1.2.6
Keywords: val select Cc: jkeane
Blocked by: Blocking:

When I loop over an array of field names (like so):

$.each(populateFields,function() { $("#"+this).val([this.toLowerCase()]); });

jQuery doesn't always properly assign values to select elements.

Attachments (2)
  • 3064.2.html (2.9 KB) - added by nathanhammond August 14, 2008 09:02PM UTC.

    Test Case 2

  • 3064.html (2.5 KB) - added by nathanhammond August 14, 2008 06:20PM UTC.

    Test Case

Change History (5)

Changed June 24, 2008 06:58PM UTC by flesler comment:1

need: ReviewTest Case
priority: criticalminor

Your details are not quite enough to be able to handle this.

Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem.


Changed August 14, 2008 06:23PM UTC by nathanhammon comment:2

The test case I've attached works as expected in my versions of FF, Opera, and Safari (all latest). It does not work in any version of IE (6, 7, 8b1--using IETester).

Any thoughts before I create a patch?

Changed August 14, 2008 06:50PM UTC by flesler comment:3

cc: → jkeane

That's not the same situation the reporter described.

Changed August 14, 2008 09:07PM UTC by nathanhammon comment:4

Test Case 2 attached, using code identical to the reporter's. I cannot get this one to fail anywhere. Worksforme?

Original test case will be filed as a new bug since the issue is apparently different.

Changed August 14, 2008 09:19PM UTC by flesler comment:5

resolution: → invalid
status: newclosed

Ok, it's mostly useless to suppose what the reporter meant, he should be the one providing a test case I think.

The description is too vague, and the reporter isn't replying. So I'll close this.

To the reporter: if you want, reopen with a valid test case.