jquery append div
Append a div to the end of a paragraph. This example appends a div to the paragraph with id 'textAppend'.
Some intro text...
Code
<p id="textAppend">Some intro text...</p>
<button type="button" onclick="appendfunc()" >Go!</button>
<script>
function appendfunc()
{
$( "#textAppend" ).append( "<div>Appended div!</div>" );
}
</script>
<button type="button" onclick="appendfunc()" >Go!</button>
<script>
function appendfunc()
{
$( "#textAppend" ).append( "<div>Appended div!</div>" );
}
</script>