The jQuery append method is used to insert specified content at the end of the selected element. Please see below example:

    <!DOCTYPE html>  
    <script src=""></script>  
            $("p.htmlappend").append(" <b>New appended text</b>.");  
    <p class="htmlappend">This is a paragraph.</p>  
    <p>This is another paragraph.</p>  
    <button id="btn1">Append text</button>  
Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.