Skip to main content

Bug Tracker

Side navigation

#14676 closed bug (notabug)

Opened January 08, 2014 11:57AM UTC

Closed January 08, 2014 01:17PM UTC

jQuery.val problem for "select" fields

Reported by: gchumillas@email.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

The .val() method does not work properly for "select" fields when I pass an string object. For example:

$('#my-select-field').val(new String('value')); // does not work
$('#my-select-field').val('value'); // works

Live example:

http://jsfiddle.net/cequiel/4yPnR/3/

Attachments (0)
Change History (1)

Changed January 08, 2014 01:17PM UTC by scottgonzalez comment:1

resolution: → notabug
status: newclosed

See #4533 and #12538.