Skip to main content

Bug Tracker

Side navigation

#11697 closed bug (invalid)

Opened May 04, 2012 02:13PM UTC

Closed May 04, 2012 02:43PM UTC

removeAttr 'selected' option does not work in Opera browser

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description
$("select option:selected").removeAttr("selected");

that string does not work in Opera

Attachments (0)
Change History (1)

Changed May 04, 2012 02:43PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The pseudo :selected looks at the property but of course if you had used an attribute selector of [selected] as the selector that wouldn't have worked reliably either. So be consistent, if you want to change the dynamic property value then change it!

$("select option:selected").prop("selected", false);