diff options
Diffstat (limited to 'devtest/src/main/java/com/google/gwt/query/public/test.html')
-rw-r--r-- | devtest/src/main/java/com/google/gwt/query/public/test.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devtest/src/main/java/com/google/gwt/query/public/test.html b/devtest/src/main/java/com/google/gwt/query/public/test.html index 5e3d76f4..42e00b2a 100644 --- a/devtest/src/main/java/com/google/gwt/query/public/test.html +++ b/devtest/src/main/java/com/google/gwt/query/public/test.html @@ -4,6 +4,22 @@ </head>
<body>
<script language="javascript" src="test.nocache.js"></script>
+ <script language="javascript" src="jquery-1.3.1.js"></script>
+
+ <button id="a">A</button>
+ <button id="b">B</button>
+ <script>
+ var a = $("#a");
+ var b = $("#b");
+ $(a).toggle(function() {
+ $(b).remove();
+ },function() {
+ $(a).after($(b));
+ });
+ $(b).click(function() {
+ alert("b clicked");
+ });
+ </script>
</body>
</html>
\ No newline at end of file |