append method in jquery

append() method is used to add something in the content, like in paragraph etc.

<!DOCTYPE html>
<html>
<head>
  
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <p>My Name is: </p>
<script>
  $("p").append("<b>Mahak Gupta</b>");
</script>

</body>
</html>


Output:

1.png
Ebook Download
View all
Learn
View all