Bug Tracker

Ticket #1816: jquery_test.html

File jquery_test.html, 683 bytes (added by davidserduke, 14 years ago)

test case (built based on description)

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3  <head>
4    <title>Tester</title>
5    <style type="text/css">
6      #container { background:yellow; width:200px; }
7    </style>
8    <script type="text/javascript" src="../jquery.js"></script>
9    <script type="text/javascript">
10      function doIt() {
11        alert($(document.body).text());
12        alert($("body").text());
13      }
14
15      $(function () {
16        $("#doit").click(doIt);
17      });
18    </script>
19  </head>
20  <body>
21    <button id="doit">Do It</button>
22    <div id="container">
23      Hi
24    </div>
25    <div id="adiv"></div>
26  </body>
27</html>