Bug Tracker

Ticket #5120: scribble2.htm

File scribble2.htm, 873 bytes (added by christinePanus, 11 years ago)

Test Case that uses the nightly Build from 8.24

Line 
1<html>
2<head>
3<title>Test</title>
4<script src="/js/jquery/jquery-nightly.js"></script>
5
6
7<script language="JavaScript">
8        function submitit()
9        {
10                alert('TestCase2: You should receive a \'Submit Success\' alert after you see this alert. ');
11                $('#testForm').submit();
12        }
13</script> 
14
15</head>
16        <body>
17                <form id="testForm"" action="javascript:alert('Submit Success');" method="POST">
18                        <input type="submit" name="test" value="Control - Submit Button">
19                        <div onClick="alert('TestCase1: You should receive a \'Submit Success\' alert after you see this alert. ');$('#testForm').submit();" style="width:150px;cursor:pointer;border:solid thin black;cursor:hand;">TestCase1: Submit Form by clicking on this div</div>
20                        <input type="button" name="TestCase2" value="testcase2: Button With OnClick to Function" onClick="submitit()">
21                </form>
22        </body>
23</html>