Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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()

```