MCPcopy
hub / github.com/jquery/jquery / getSelectedOptions

Function getSelectedOptions

test/unit/manipulation.js:1599–1603  ·  view source on GitHub ↗
( collection )

Source from the content-addressed store, hash-verified

1597 var element = jQuery( "<select><option>Foo</option><option selected>Bar</option><option selected>Baz</option></select>" );
1598
1599 function getSelectedOptions( collection ) {
1600 return collection.find( "option" ).filter( function( option ) {
1601 return option.selected;
1602 } );
1603 }
1604
1605 assert.equal(
1606 getSelectedOptions( element.clone() ).length,

Callers 1

manipulation.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected