QueryX
QueryX is a lightweight JavaScript library that provides a jQuery-like interface for DOM manipulation and traversal. It allows you to select elements, add/remove classes, manipulate attributes, traverse the DOM, and more, similar to jQuery but in a simpler and more lightweight manner.
Features
- DOM Selection: Select elements from the DOM using CSS selectors.
- DOM Manipulation: Add, remove, and modify elements and their attributes.
- Event Handling: Attach and detach event handlers to elements.
- DOM Traversal: Traverse the DOM tree with ease.
- Chaining: Chain multiple operations together for cleaner code.
Getting Started
To get started with QueryX, include the queryX.js
file in your project:
<script src="path/to/queryX.js"></script>
Alternatively, you can use a CDN link:
<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/QueryX@main/QueryX.js"></script>
or
<script src="https://cdn.jsdelivr.net/npm/queryxjs"></script>
Usage
// Example Usage
queryX('button')
…