diff options
author | Manolo Carrasco <manolo@apache.org> | 2010-07-31 07:14:28 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2010-07-31 07:14:28 +0000 |
commit | 78ececeb3fb00fef2bd0833771c00ac512d1f286 (patch) | |
tree | 8d1d9c3a620b6a02682b369041ded646586219a6 /devtest/src/main/java/com/google/gwt/query/public/test.html | |
parent | d3184ec01beeeffacf8aa44c7f6adeb08da04305 (diff) | |
download | gwtquery-78ececeb3fb00fef2bd0833771c00ac512d1f286.tar.gz gwtquery-78ececeb3fb00fef2bd0833771c00ac512d1f286.zip |
added an archetype to create a gquery application from scratch
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 |