The jQuery API .before( ) method will place the contents of the parameter, what is in the parentheses, and place it before each of the elements that match the selector

For example:

$(".greeting").before("John Smith");

<h1><span class="greeting">, you are invited to attend the meeting.</span></h1>

The result:

John Smith, you are invited to attend the meeting.