Online: 22746
To append html content to a particular element, jQuery append() method can be used.
<script>
$("#div2").append(" | This is a good <i>boy</i>");
</script>
Above code snippet will append the specified text ( | This is a good boy) in the html element whose id is “div2”.
Views: 6386 | Post Order: 30