Giter Club home page Giter Club logo

sh20raj / queryx Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 21 KB

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.

Home Page: https://sh20raj.github.io/QueryX/

License: MIT License

JavaScript 100.00%
dom-manipulation javascript jquery jquery-alternative sh20raj

queryx's Introduction

QueryX

GitHub license GitHub issues GitHub stars GitHub forks

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.

Dev.to

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').on('click', function() {
    queryX(this).toggleClass('active');
});

queryX('.container').append('<div class="new-element">New Element</div>');

var formData = queryX('form').serialize();
console.log(formData);

queryX('.parent').children().addClass('child-element');

queryX('.element').closest('.container').css('background-color', 'red');

Documentation

For detailed documentation and examples, please refer to the Documentation section (link to your documentation).

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Visitors

queryx's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

cdnsfree2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.