Skip to main content

Bug Tracker

Side navigation

#117 closed bug (fixed)

Opened August 01, 2006 07:51AM UTC

Closed January 17, 2009 07:53PM UTC

Add a 'selected' expression

Reported by: Jörn Owned by:
Priority: minor Milestone: 1.1.4
Component: selector Version: 1.1.4
Keywords: Cc:
Blocked by: Blocking:
Description

In the list of form element expression a 'selected' would be useful. Like this:

// Form elements

enabled: "!a.disabled",

disabled: "a.disabled",

checked: "a.checked",

selected: "a.selected"

With this, you could do eg.

function getSelectedOptions(select) {

return $("option:selected", select).get();

}

Attachments (0)
Change History (6)

Changed August 01, 2006 07:52AM UTC by anonymous comment:1

component: ajaxcore

Changed August 06, 2006 07:21PM UTC by john comment:2

milestone: → 1.0
type: enhancementfeature
version: → 1.0

Changed August 17, 2006 08:17AM UTC by Jörn comment:3

A patch for this:

http://fuzz.bassistance.de/fainawfa/jquery-117-selected-patch.txt

Not very sophisticated...

Changed August 18, 2006 04:28AM UTC by john comment:4

resolution: → fixed
status: newclosed

In SVN rev 215.

Changed November 10, 2006 07:08PM UTC by Rhonda comment:5

cc: → Rhonda
component: → 1
keywords: → Rhonda
milestone: → 1
priority: → 1
summary: Add a 'selected' expressionRhonda
type: → 1
version: → 1

Changed January 17, 2009 07:53PM UTC by kswedberg comment:6

cc: Rhonda
component: 1selector
description: In the list of form element expression a 'selected' would be useful. Like this:\ \ // Form elements\ enabled: "!a.disabled",\ disabled: "a.disabled",\ checked: "a.checked",\ selected: "a.selected"\ \ With this, you could do eg.\ function getSelectedOptions(select) {\ return $("option:selected", select).get();\ }In the list of form element expression a 'selected' would be useful. Like this: \ \ // Form elements \ enabled: "!a.disabled", \ disabled: "a.disabled", \ checked: "a.checked", \ selected: "a.selected" \ \ With this, you could do eg. \ function getSelectedOptions(select) { \ return $("option:selected", select).get(); \ }
keywords: Rhonda
milestone: 11.1.4
need: → Review
priority: 1minor
resolution: → fixed
status: reopenedclosed
summary: RhondaAdd a 'selected' expression
type: → bug
version: 11.1.4

re-opened by spammer. this was fixed/added a long time ago.