> For the complete documentation index, see [llms.txt](https://jscula.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jscula.gitbook.io/docs/manipulation/.scrolltotop.md).

# .scrollToTop()

### scrollToTop()

Scrolls an element to the top of its container.

#### Usage:

```javascript
$('#content').scrollToTop();
```
