Bug Tracker

Modify

Ticket #3064 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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

Description

When I loop over an array of field names (like so): $.each(populateFields,function() { $("#"+this).val(r.data[this.toLowerCase()]); });

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

Attachments

3064.html Download (2.5 KB) - added by nathanhammond 5 years ago.
Test Case
3064.2.html Download (2.9 KB) - added by nathanhammond 5 years ago.
Test Case 2

Change History

comment:1 Changed 5 years ago by flesler

  • need changed from Review to Test Case
  • Priority changed from critical to minor

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. Thanks.

Changed 5 years ago by nathanhammond

Test Case

comment:2 Changed 5 years ago by nathanhammon

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?

comment:3 Changed 5 years ago by flesler

  • Cc jkeane added

That's not the same situation the reporter described.

Changed 5 years ago by nathanhammond

Test Case 2

comment:4 Changed 5 years ago by nathanhammon

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.

comment:5 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to invalid

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.

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.