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!
- Host: GitHub
- URL: https://github.com/dabeng/native-js-is-sexy
- Owner: dabeng
- License: mit
- Created: 2016-02-02T08:06:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-25T04:45:03.000Z (almost 9 years ago)
- Last Synced: 2025-01-28T02:22:43.869Z (over 1 year ago)
- Size: 119 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Native JavaScript Equivalents of jQuery API
**Don't forget: native javascipt equivalents of jQuery API are equally sexy!**

## 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