Bug Tracker

Ticket #1414: jquery_test.html

File jquery_test.html, 777 bytes (added by davidserduke, 13 years ago)

test case

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        $("form").submit();
12        $("#adiv").text("submit attempted... did the page refresh or get # after url?");
13      }
14
15      $(function () {
16        $("#doit").click(doIt);
17      });
18    </script>
19  </head>
20  <body>
21    <button id="doit">Attempt Submit</button>
22    <form action="#submitworked">
23      <input type="text" id="submit" />
24    </form>
25    <div id="adiv"></div>
26  </body>
27</html>