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:
Attachments (0)
Change History (1)
Changed January 08, 2014 01:17PM UTC by comment:1
| resolution: | → notabug |
|---|---|
| status: | new → closed |
See #4533 and #12538.