Opened 9 years ago
Closed 9 years ago
#14676 closed bug (notabug)
jQuery.val problem for "select" fields
Reported by: | 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/
Note: See
TracTickets for help on using
tickets.
See #4533 and #12538.