Side navigation
#13022 closed bug (notabug)
Opened December 09, 2012 07:32AM UTC
Closed December 09, 2012 07:00PM UTC
Warning when setting value of a <select>, where options have value attribute
Reported by: | hhurford | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<select name="t_title">
<option value=""></option>
<option value="Mr.">Mr.</option>
</select>
jquery: $('[name=t_title]').val('Mr.');
The correct value is set, but with warning received:
"Use of attributes' specified attribute is deprecated. It always returns true."
If I remove the value attributes, warning disappears.
Environment: Firefox 17.0.1 with Firebug, Win7 64-bit
See http://jsfiddle.net/LRWR2/
Warning comes only on first use of val function on the select.