istesequi
Version:
Lightweight and intuitive javascript library
36 lines (17 loc) • 486 B
Markdown
## .first()
Add html class(es) to all of the matched elements.
```js
.first();
```
### Parameters
This method doesn't accept any parameters
### Return
The first html node or false if there is none.
### Examples
Retrieve the first element of a list:
```js
var next = u("ul.demo li").first();
```
### Related
[.removeClass(name)](#removeclass) deletes class(es) from the matched elements.
[.hasClass(name)](#hasclass) finds if the matched elements contain the class(es)