Jquery

jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

jQuery prependTo() Method

jQuery prependTo() Method

 

 

The prependTo() method is used to insert HTML elements at the start of the selected elements. For inserting HTML elements at the end of the selected elements, we have to use the appendTo() method.

 

Syntax:-

 

Its syntax is:- $(content).prependTo(selector)

 

Further Explanation:-

 

Parameter Description
content Required. Specifies the content to insert.
selector Required. Specifies which elements to prepend the content to

Code Explanation

All Tutorials related to jQuery CSS and HTML Methods

All Sections related to Jquery