jQuery CSS Methods allow you to get and set CSS properties of selected elements. jQuery CSS Methods can be used for manage CSS properties of an element, you can change, delete, and add CSS properties. Following are jQuery HTML methods
jQuery Method | Description |
---|---|
addClass() | Adds one or more class to selected elements |
css() | Sets or returns CSS properties for the selected elements |
hasClass() | Check given class exist of the selected elements |
height() | Sets or returns the height of selected elements |
innerHeight() | Sets or returns the height of the selected elements including padding but not border |
innerWidth() | Sets or returns the width of the selected elements including padding but not border |
offset() | Sets or returns the current coordinates of the selected elements |
outerHeight() | Sets or returns the outer height of the selected elements including padding, border, and margin |
outerWidth() | Sets or returns the outer width of the selected elements including padding, border, and margin |
position() | Sets or returns the current coordinates of the selected elements, relative to the offset parent |
removeClass() | Removes one or more classes from selected elements |
scrollLeft() | Sets or returns the current horizontal scrollbar position of selected elements |
scrollTop() | Sets or returns the current vertical scrollbar position of selected elements |
toggleClass() | Toggle between add or remove one or more classes from selected elements |
width() | Sets or returns the width of selected elements |