Skip to main content

Bug Tracker

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

Attachments (0)
Change History (2)

Changed December 09, 2012 05:43PM UTC by hhurford comment:1

See http://jsfiddle.net/LRWR2/

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

Changed December 09, 2012 07:00PM UTC by dmethvin comment:2

resolution: → notabug
status: newclosed

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

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