Opened 10 years ago
Closed 10 years ago
#13022 closed bug (notabug)
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
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
I see the warning but it's not in jQuery code.
Note: See
TracTickets for help on using
tickets.
See http://jsfiddle.net/LRWR2/
Warning comes only on first use of val function on the select.