Skip to main content

Bug Tracker

Side navigation

#11581 closed bug (invalid)

Opened April 10, 2012 04:49PM UTC

Closed April 10, 2012 09:38PM UTC

select.val() returns an object in IE 8

Reported by: patrick.arminio@gmail.com Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
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/

Attachments (0)
Change History (3)

Changed April 10, 2012 05:12PM UTC by rwaldron comment:1

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

Changed April 10, 2012 08:27PM UTC by patrick.arminio@gmail.com comment:2

Replying to [comment:1 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)

Changed April 10, 2012 09:38PM UTC by sindresorhus comment:3

component: unfiledattributes
priority: undecidedlow
resolution: → invalid
status: newclosed

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