QueryX

QueryX Examples

Here are some examples demonstrating the usage of QueryX:

Adding a Class

queryX('div').addClass('highlight');

Appending Content

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

Setting Attributes

queryX('input').attr('disabled', true);

Attaching Click Event

queryX('button').on('click', function() {
    queryX(this).toggleClass('active');
});

Finding Children

queryX('.parent').children();

Finding Closest Ancestor

queryX('.element').closest('.container');

Serializing Form Data

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