new _$(parameter, contextopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parameter |
Element | NodeList | Array | String | function | The parameter to initialize the _$ object with | |
context |
Element |
<optional> |
- Source:
Methods
add(parameter, contextopt) → {_$}
Add elements to the current _$ elements
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parameter |
Element | NodeList | Array | String | Element(s) to add | |
context |
Element |
<optional> |
Context of the potential query |
- Source:
Returns:
The current object
- Type
- _$
addClass(parameter) → {_$}
Add class(es) to each element
Parameters:
Name | Type | Description |
---|---|---|
parameter |
String | function | Space separated classes to add |
- Source:
Returns:
The current object
- Type
- _$
after(…elements) → {_$}
Insert content after each element
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elements |
Array.<Element> | Array.<NodeList> | Array.<Array> | Array.<String> | Array.<_$> |
<repeatable> |
Elements to be inserted |
- Source:
Returns:
The current object
- Type
- _$
append(…elements) → {_$}
Append content to the end of each element
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elements |
Array.<Element> | Array.<NodeList> | Array.<Array> | Array.<String> | Array.<_$> |
<repeatable> |
Elements to be appended |
- Source:
Returns:
The current object
- Type
- _$
appendTo(targets) → {_$}
Append each element to the end of the targets
Parameters:
Name | Type | Description |
---|---|---|
targets |
Element | NodeList | Array | String | _$ | Elements to be appended to |
- Source:
Returns:
The current object
- Type
- _$
attr(name, valueopt) → {_$|String}
Set/Get an attribute for each element
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | The attribute name | |
value |
String | Number | null |
<optional> |
The attribute value |
- Source:
Returns:
The current object or the value of the attribute
- Type
- _$ | String
before(…elements) → {_$}
Insert content before each element
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
elements |
Array.<Element> | Array.<NodeList> | Array.<Array> | Array.<String> | Array.<_$> |
<repeatable> |
Elements to be inserted |
- Source:
Returns:
The current object
- Type
- _$
blur() → {_$}
Force the focus out of each element
- Source:
Returns:
The current object
- Type
- _$
children(selectoropt) → {_$}
Get the children of each element
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
selector |
String |
<optional> |
An optional filter |
- Source:
Returns:
The current object's children
- Type
- _$
clone(deepopt) → {_$}
Clone each element
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
deep |
Boolean |
<optional> |
true | Deep clone the elements ? |
- Source:
Returns:
A clone from each current element
- Type
- _$