linq.$

jQuery Specific Method
Applies the jQuery selector method to each element in the array and returns it

Overloads

  • Array $ (Array)

Array $ (Array)

Returns the array with the jQuery selector applied to each element

Example

var selectTargets = ["div", ".something", "#cheese"];
//Gets all the jQuery wrappers for all elements having a tag of
//div, a class of ".something", or an id of "#cheese"
//The aggregate is to flatten the result instead of having 3
//arrays each containing the selections individually
selectTargets.$().Aggregate();

Last edited Sep 23, 2011 at 7:37 AM by mlorbetske, version 2

Comments

No comments yet.