JQuery Clone() Method Example

jquery

The clone() method is used to make duplicate copy of selected elements. Means it copies the matched elements as well as their descendant elements and text nodes. It copies child nodes, text and attributes of the selected elements. It clones matched DOM elements and select the clones. It is also useful for moving elements into […]

JQuery Attr() Method Example

jquery

Jquery attr() method is used to retrieve the value of an attribute of the selected elements. It gets attribute for the element in the matched set. It sets attributes and values of selected elements and also sets one or more attributes for every matched element. It is also used to get attributes from the HTML […]