Home >>jQuery Tutorial >jQuery HTML / CSS Methods
These are the following table list of all the methods which is used to manipulate the HTML and CSS.
Method | Description |
---|---|
addClass() | In jQuery you can use this method to adds one or more class names to selected elements |
after() | You can Inserts content after selected elements using this method |
append() | It is used to inserts content at the end of selected elements |
appendTo() | It is used to Inserts HTML elements at the end of selected elements |
attr() | This method is used to sets or returns attributes of selected elements |
before() | It is used to inserts content before selected elements |
clone() | It is used to makes a copy of selected elements |
css() | It is used to sets or returns one or more style properties of the selected elements |
detach() | This method helps to Removes selected elements |
empty() | It is used to removes content from selected elements and all child nodes |
hasClass() | This method checks specified class name if any of the selected elements have |
height() | It is used to sets or returns the height of selected elements |
html() | This method returns the content of selected elements |
innerHeight() | It is used to returns the height of an element not border but includes padding |
innerWidth() | It is used to returns the width of an element includes padding, but not border |
insertAfter() | This method is used to Inserts HTML elements after selected elements |
insertBefore() | This method is used to Inserts HTML elements before selected elements |
offset() | This method is used to sets or returns the offset coordinates of the selected elements |
offsetParent() | It is used to Returns the first positioned of the parent element |
outerHeight() | It is used to Returns the height of an element includes border and padding |
outerWidth() | It is used to Returns the width of an element includes border and padding |
position() | This method is used to Returns the relative position of an element |
prepend() | It is used to Inserts content at the beginning of selected elements |
prependTo() | It is used to Inserts HTML elements at the beginning of selected elements |
prop() | This method helps to sets or returns properties/values of selected elements |
remove() | It is used to Removes the selected elements including events and data |
removeAttr() | It is used to Removes one or more attributes from selected elements |
removeClass() | It is used to Removes one or more classes from selected elements |
removeProp() | It is used to Removes a property set by the prop() method |
replaceAll() | It helps to Replaces selected elements with new HTML elements |
replaceWith() | It helps to Replaces selected elements with new content |
scrollLeft() | It helps to Sets or returns the horizontal scrollbar position of the selected elements |
scrollTop() | It is used to sets or returns the vertical scrollbar position of the selected elements |
text() | It is used to sets or returns the text content of the selected elements |
toggleClass() | It is used to Toggles between adding/removing one or more classes from the selected elements |
unwrap() | It is used to removes the parent element of the selected elements |
val() | This method is used to sets or returns the value attribute of the selected elements |
width() | This method is used to sets or returns the width of selected elements |
wrap() | It is used to Wraps HTML elements around each of the selected element |
wrapAll() | It is used to Wraps HTML elements around all of the selected elements |
wrapInner() | It is used to Wraps HTML elements around the content of each selected element |