codeGK
Code it ALL
jQuery prepend() - CodeGK

♦ jQuery prepend()

♣ Example2: jQuery prepend()

Inserts Textual/HTML data at the beginning of the selected HTML elements.
Basic Syntax
$(selector).prepend(data);
selector: the HTML element to be selected.
data: the data to inserted on top of selected HTML element.
In this example, jQuery prepend() method is illustrated.
Example
Input:
Output: