jquery append text
Append some text to the end of a paragraph. This example appends text 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( "<strong>Appended Text!</strong>" );
}
</script>
<button type="button" onclick="appendfunc()" >Go!</button>
<script>
function appendfunc()
{
$( "#textAppend" ).append( "<strong>Appended Text!</strong>" );
}
</script>