Author: admin

  • jQuery appendTo

    The appendTo() method is used to add additional content at the end of the selected elements. It is same as jQuery append() method. There is only syntactical difference between append() and appendTo() methods. Syntax: Example of jQuery append To method Let’s take an example to demonstrate jQuery appendTo() method.

  • jQuery append

    The jQuery append() method is used to insert specified content as the last child (at the end of) the selected elements in the jQuery collection. The append () and appendTo () methods are used to perform the same task. The only difference between them is in the syntax. Syntax: Parameters of jQuery append() method Parameter…

  • jQuery insertAfter()

    The jQuery after() and jQuery insertAfter() both methods are used to perform the same task of inserting additional contents after the selected elements. Difference between jQuery after and insertAfter The main difference between after() and insertAfter is in syntax and placement of the content and target. In after() method, target is the selected element and…

  • jQuery after

    The jQuery after() method is used to insert specified content after the selected element. It is just like jQuery append() method. If you want to insert content before the selected element, you should use jQuery before() method. Syntax: Parameters of jQuery after() method Parameter Description Content It is a mandatory parameter. It specifies the content…

  • jQuery prepend()

    The jQuery prepend() method is used to insert the specified content at the beginning (as a first child) of the selected elements. It is just the opposite of the jQuery append() method. If you want to insert the content at the end of the selected elements, you should use the append method. Syntax: Parameters of…

  • jQuery before

    The jQuery before() method is used to insert the specified content before the selected elements. It adds the content specified by the parameter, before each element in the set of matched elements. The before() and insertBefore() both methods are used to perform same task. The main difference between them is in syntax, and the placement…

  • jQuery css

    The jQuery CSS() method is used to get (return)or set style properties or values for selected elements. It facilitates you to get one or more style properties. jQuery CSS() method provides two ways: 1) Return a CSS property It is used to get the value of a specified CSS property. Syntax: Let’s take an example…

  • jQuery val()

    There are two usage of jQuery val() method. Syntax: It is used to get value. It is used to set value. It is used to set value using function. Parameters of jQuery val() method Parameter Description Value It is a mandatory parameter. It is used specify the value of the attribute. Function (index, currentvalue) It…

  • jQuery text

    The jQuery text() method is used to set or return the text content of the selected elements. To return content: When this method is used to return content, it returns the combined text content of all matched elements without the HTML markup. To set content: When this method is used to set content, it overwrites the content…

  • jQuery html

    jQuery html() method is used to change the entire content of the selected elements. It replaces the selected element content with new contents. Note: It is a very useful function but works in a limited area because of its API documentation. The API documentation of the jQuery html function consists of three method signatures. The…