Bug Tracker

Opened 6 years ago

Closed 6 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 6 years ago by hhurford

See http://jsfiddle.net/LRWR2/

Warning comes only on first use of val function on the select.

comment:2 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

I see the warning but it's not in jQuery code.

http://i.imgur.com/u7TCD.png

Note: See TracTickets for help on using tickets.