Test case details

Preparation Code

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <div id="text"> <p>Test text</p> </div> <script>   var textField = $("#text"); </script>

Test cases

Test #1

textField.text("testing jquery __text__ vs html");

Test #2

textField.html("testing jquery text vs __html__");