Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoriqdharmawan/jquery-lite
Pembuatan library seperti jQuery versi kecilnya
https://github.com/thoriqdharmawan/jquery-lite
clone jquery
Last synced: about 1 month ago
JSON representation
Pembuatan library seperti jQuery versi kecilnya
- Host: GitHub
- URL: https://github.com/thoriqdharmawan/jquery-lite
- Owner: thoriqdharmawan
- Created: 2020-07-04T15:24:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-04T15:51:19.000Z (over 4 years ago)
- Last Synced: 2024-10-07T11:35:55.737Z (3 months ago)
- Topics: clone, jquery
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/jquery-lite-thq
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pembuatan library seperti jQuery
tapi versi kecilnya aja ya :D
# instalation
`npm i jquery-lite-thq`
# Example
```
h1
h2
h3
h4
```# Import
```
import $ from 'jquery-lite-thq'
```# Add Event
```
$('h1').on("click", function () {
alert("h1 Clicked")
})
```# Add Class
```
$('h2').attr("class", "new-class")```
# Hide Element
```
$('h3').hide()```