jQuery prepend()

The jQuery prepend() inserts content at the beginning of the selected elements. Syntax: $(selector).prepend(content,function(index,html)) Content: Content is a compulsory parameter of the jQuery prepend() method, as it specifies the content to insert at the beginning of the selected element. It can accept the following values: HTML elements, jQuery objects, and DOM elements. Function: It is … Read more