tiny-query-dom
v1.1.0
Published
TinyQuery - A lightweight and modern JavaScript library for minimal DOM manipulation and event handling, inspired by jQuery.
Downloads
566
Maintainers
Readme
TinyQuery
A lightweight and modern JavaScript library for DOM manipulation and event handling, inspired by jQuery.
Installation
npm install tiny-query-dom
import { $ } from 'tiny-query-dom';
$("#test").on("click", () => {
$("#subject")
.toggle()
.css({ color: "red", font: "32px bold" })
.text("No Subject!");
});
Features
- DOM Manipulation: text(), html(), val(), append(), prepend()
- Event Handling: on(), off(), trigger(), click()
- CSS Manipulation: css(), addClass(), removeClass(), toggleClass()
- Traversing: parent(), children()
- Form Handling: serialize()
- Chaining Methods
- Utility Functions: each()