Skip to main content

Bug Tracker

Side navigation

#14112 closed bug (duplicate)

Opened July 08, 2013 12:49PM UTC

Closed July 08, 2013 02:07PM UTC

Selected HTML option not working with Jquery after 1.5 version

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

For the HTML

<select id="routetype" name="routetype">

<option value="fastest">Fastest</option>

<option selected="true" value="balanced">Balanced</option>

<option value="quietest">Quietest</option>


when the jquery statement written below is executed, the default value is not shown on screen, however in the DOM it is set correctly.

$("#routetype > [value='quietest']").attr("selected", "true");

Attachments (0)
Change History (2)

Changed July 08, 2013 12:59PM UTC by comment:1

See this jfiddle for reference. Select the onLoad option to see the result.

Changed July 08, 2013 02:07PM UTC by timmywil comment:2

resolution: → duplicate
status: newclosed

Duplicate of #13245.