The jQuery prependTo() method inserts existing or new HTML content to the beginning of a selected target element.

With jQuery prependTo, you can prepend (add to beginning) an existing div containing content by Class or ID or use it to add new HTML content to a target.