Append method to add text to body not working

There could be some reason that append method to add text to body not working. You can use below code snippet to find out the solution in your case.

Answers 1
  • Append method to add text on body of HTML Dom using jQuery

    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
    <script>
        $(document).ready(function() {
            $("body").append("test");
        });
    </script>
    
    0
  • Back to code snippet queries related jquery