An open API service indexing awesome lists of open source software.

https://github.com/dabeng/native-js-is-sexy

Don't forget: native javascipt equivalents of jQuery methods are equally sexy!
https://github.com/dabeng/native-js-is-sexy

Last synced: over 1 year ago
JSON representation

Don't forget: native javascipt equivalents of jQuery methods are equally sexy!

Awesome Lists containing this project

README

          

# Native JavaScript Equivalents of jQuery API
**Don't forget: native javascipt equivalents of jQuery API are equally sexy!**

![cover](http://dabeng.github.io/js-equivalents-of-jq-methods/img/jquery_javascript.png)

## Notes
- We focus on jQuery 2.0+ and neglect deprecated APIs of its earlier versions.
- We focus on Chorome, Firefox, Safari and Opera and neglect IE.
- We emphasize the widespread use of ES 6 & 7 syntax.
- We focus on simple and efficient equivalents and neglect intricate or obscure equivalents.

## Selectors
### basic
#### #id
```javascript
// jquery version
$('#id')

// javascript version
document.querySelector('#id')
```
#### .class
```js
// jquery version
$('.classname')

// javascript version
document.querySelectorAll('.classname')
```

## Attributes

## Manipulation

## Traversing

## Events

## Effects

## Ajax

## Core