The jQuery attr() method is used to return or set the attributes and values of the selected elements. When you …
Category Archives: jQuery Attributes/CSS
The jQuery prop() method is can be used to return and set the properties and values of the selected elements. …
The jQuery removeProp() method can be used to remove the property of the selected elements. It can remove single or …
The jQuery val() method can be used to return or set the value attribute of the selected element. You can …
Continue reading “jQuery val() Function: Get or Set Value of Element”
The jQuery addClass() method can be used to add single or multiple classes to the selected element. It’s useful when …
The jQuery css() method can be used to return or set the CSS properties for the selected elements. You can …
The jQuery hasClass() method checks whether the specified class name exist in the selected elements. It returns a ‘true’ value …
The jQuery removeClass() method can be used to remove one or more class names from the selected element. It can …
The jQuery toggleClass() method can be used to toggle the class names for the selected element. You can also add …
The jQuery height() method can be used to get or set the height of the selected element. It can be …
The jQuery innerHeight() method returns or sets the inner height of the selected element. The value of height includes the …
The jQuery innerWidth() method returns or sets the inner width of the selected element. The value of width includes the …
The jQuery outerHeight() method returns the outer height of the selected element. The value of outer height includes the padding …
The jQuery outerWidth() method returns or sets the outer width of the selected element. The value of outer width includes …
The jQuery width() method can be used to get or set the width of the selected element. It is also …
The jQuery offset() method can be used to return or set the offset the coordinates of the selected element. An …
The jQuery offsetParent() method can be used to get the first positioned parent element. If you place the selected element …
The jQuery position() method can be used to get the position of the first matched element. It finds the position …
The jQuery scrollLeft() method can be used to get or set the position of the horizontal scrollbar. It finds the …
The jQuery scrollTop() method can be used to return or set the position of the vertical scrollbar. It finds the …
The jQuery data() method can be used to set or return the attached data from the selected element. To find …
The jQuery removeData() method can be used to remove all or specified previously set data. The data is previously set …