JQuery Append Keyword Example Code


Using this JQuery Append Keyword, we can able to Add the element to the existing DOM element with the deleting the previous content.


    <script type="text/javascript">
        $('#ranga').append("<b>jqueryexamplecode.blogspot.com</b>");
   </script>


Complete Code:

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <title></title>

</head>
<body>
<div id="ranga"> <b>Ranga Rajesh Kumar -</b></div>

    <script type="text/javascript">
        $('#ranga').append("<b>jqueryexamplecode.blogspot.com</b>");
   </script>

</body>
</html>

Output:
JQuery Append Keyword Example Code
JQuery Append Keyword Example Code

Post a Comment

Complete posts