Css
.addClass()
Adds the specified class(es) to each element in the set of matched elements.
$(selector).addClass("class")
.hasClass()
Determine whether any of the matched elements are assigned the given class.
$(selector).hasClass("class")
.removeClass()
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
$(selector).removeClass("class")
.toggleClass()
Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument.
$(selector).toggleClass("class")
.css( propertyName )
Get the computed style properties for the first element in the set of matched elements.
$(selector).css("propertyName")
.css( propertyName, propertyValue )
Set the computed style properties for the first element in the set of matched elements.
$(selector).css("propertyName","propertyValue")
.css( object )
Set the computed style properties for the first element in the set of matched elements.
object: { propertyName: propertyValue}
$(selector).css({
propertyName1:propertyValue1,
propertyName2:propertyValue2
})
.offset()
Get the current coordinates of the first element, or set the coordinates of every element, in the set of matched elements, relative to the document.
$(selector).offset()
return as object {width: width, height: height, left: left, top: top}