Bug Tracker

Modify

Ticket #117 (closed bug: fixed)

Opened 7 years ago

Last modified 4 years ago

Add a 'selected' expression

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

Description (last modified by kswedberg) (diff)

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();

}

Change History

comment:1 Changed 7 years ago by anonymous

  • Component changed from ajax to core

comment:2 Changed 7 years ago by john

  • Version set to 1.0
  • Type changed from enhancement to feature
  • Milestone set to 1.0

comment:3 Changed 7 years ago by Jörn

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

Not very sophisticated...

comment:4 Changed 7 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

In SVN rev 215.

comment:5 Changed 7 years ago by Rhonda

  • Cc Rhonda added
  • Component set to 1
  • Summary changed from Add a 'selected' expression to Rhonda
  • Priority set to 1
  • Version set to 1
  • Milestone set to 1
  • Keywords Rhonda added
  • Type set to 1

comment:27 Changed 4 years ago by kswedberg

  • Status changed from reopened to closed
  • Description modified (diff)
  • Cc Rhonda removed
  • Type set to bug
  • Component changed from 1 to selector
  • Summary changed from Rhonda to Add a 'selected' expression
  • Priority changed from 1 to minor
  • need set to Review
  • Version changed from 1 to 1.1.4
  • Milestone changed from 1 to 1.1.4
  • Keywords Rhonda removed
  • Resolution set to fixed

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.