Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11697 closed bug (invalid)

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:


$("select option:selected").removeAttr("selected");

that string does not work in Opera

Change History (1)

comment:1 Changed 11 years ago by dmethvin

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);
Note: See TracTickets for help on using tickets.