concept Parameters in category jQuery

appears as: Parameters
jQuery in Action, Third Edition

This is an excerpt from Manning's book jQuery in Action, Third Edition.

Method syntax: add

add(selector[, context])
Creates a new jQuery object and adds elements specified by the selector parameter to it. The selector parameter can be a string containing a selector, an HTML fragment, a DOM element, an array of DOM elements, or a jQuery object.
Parameters
selector (Selector|Element|Array|jQuery) Specifies what’s to be added to the matched set. This parameter can be a selector, in which case any matched elements are added to the set. If the parameter is an HTML fragment, the appropriate elements are created and added to the set. If it’s a DOM element, it’s added to the set. If it’s an array of DOM elements or a jQuery object, all the elements contained are added to the set.
context (Selector|Element|jQuery) Specifies a context to limit the search for elements that match the first parameter. This is the same parameter that can be passed to the jQuery() function.
Returns
A copy of the original set with the additional elements.

Method syntax: addClass

addClass(names)
Adds the specified class name(s) to all the elements in the set. If a function is provided, every element of the set is passed to it, one at a time, and the returned value is used as the class name(s).
Parameters
names (String|Function) Specifies the class name, or a space-delimited string of names, to be added. If a function, the function is invoked for each element, with that element set as the function context (this). The function is passed two values: the element index and the element’s current class value. The function’s returned value is used as the new class name or names to add to the current value.
Returns
The jQuery collection.

Method syntax: css

css(name, value) css(properties)
Sets the named CSS style property or properties to the specified value for each matched element.
Parameters
name (String) The name of the CSS property to be set. Both the CSS and DOM formatting of multiple-word properties (for example background-color versus backgroundColor) are supported. Most of the time you’ll use the first format version.
value (String|Number|Function) A string, number, or function containing the property value. If a number is passed, jQuery will convert it to a string and add “px” to the end of that string. If you need a different unit, convert the value to a string and add the appropriate unit before calling the method. If a function is passed as this parameter, it will be invoked for each element of the collection, setting the element as the function context (this). The function is passed two values: the element index and the current value. The returned value serves as the new value for the CSS property.
properties (Object) Specifies an object whose properties are copied as CSS properties to all elements in the set.
Returns
The jQuery collection.