Insert content at the end of an element .append()

.append()


Description: Insert content at the end of each of the matched elements.


Example:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>append example</title>
  <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
</head>
<body>
 
<p>This method is called:</p>

<script>
  bitsyCode( "p" ).append('<strong>.append()</strong>');
</script>
 
</body>
</html>

Preview:

This method is called: .append()

  • Usage

    • How to use:

      Insert content at the end of an element with .append()

    • USAGE:

      bitsyCode(".element").append("html/element");
  • Options

    • What parameters are there:

      There are no options required, however you will need to specify content to insert at the end of the matched elements. (View Usage above.)

  • Returns

    • Returns: No return type

      This method does not need to return any type.

Share