Bug Tracker

Modify

Ticket #11581 (closed bug: invalid)

Opened 14 months ago

Last modified 14 months ago

select.val() returns an object in IE 8

Reported by: patrick.arminio@… Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

Hi, I've found (maybe) a bug in Internet Explorer 8.

If I try to get the value of a select with $.val() jQuery returns an object even if there is not multiple="multiple" specified.

Here is the demo:

 http://jsfiddle.net/8QmKE/3/

Change History

comment:1 follow-up: ↓ 2 Changed 14 months ago by rwaldron

Just curious - why do you have type="text" on the select element?

comment:2 in reply to: ↑ 1 Changed 14 months ago by patrick.arminio@…

Replying to rwaldron:

Just curious - why do you have type="text" on the select element?

Oh, it was a normal input element, then I changed it to a select and forgot to remove the type attribute.

Maybe is this the problem? I'll test tomorrow (now I don't have any pc with IE)

comment:3 Changed 14 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to attributes

Tried removing the type="text" and it returned a string again.

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.