uiQuery designed to replace the minimal functionality of jQuery library. However it has different implementation, and compatible with jQuery only on simple cases. Search by selector using uiQuery gives only the first occurence of the item, but jQuery will give all occurences.
Function name
Description
.hasClass()
Check if element has some class
Code example:
Hello
.addClass()
Add some class to the element
Code example:
Hello
.removeClass()
Remove class from the element
Code example:
Hello
.toggleClass()
Add or remove class for the element
Code example:
Hello
.show()
Show the element
Code example:
Hello
.hide()
Hide the element
Code example:
Hello
.toggle()
Show or hide the element
Code example:
Hello
.css()
Get or set element CSS property
Code example:
Hello
.attr()
Get or set lement attribute
Code example:
.removeAttr()
Remove element attribute
Code example:
.data()
Set some data for the element
Code example:
.removeData()
Remove some data from the element
Code example:
.empty()
Empty element contents
Code example:
Hello
.html()
Get or set the element HTML content
Code example:
.text()
Get or set the element text
Code example:
.remove()
Remove an element
Code example:
Hello
.detach()
Detach the element from the document tree (without removing the element)
Code example:
Hello
.append()
Append content to the end of current element
Code example:
Hello
.prepend()
Append content to the beginning of current element
.appendTo()
Append current element to the end of another element
Code example:
Hello
.insertBefore()
Insert another element before current element
Code example:
.insertAfter()
Insert another element after current element
Code example:
.offset()
Get element offset by X and Y coordinate from top left corner of the document