Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11581 closed bug (invalid)

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:
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/

Change History (3)

comment:1 Changed 8 years ago by Rick Waldron

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

comment:2 in reply to:  1 Changed 8 years 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 8 years ago by sindresorhus

Component: unfiledattributes
Priority: undecidedlow
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.