Bug Tracker

Ticket #4470: dummy.html

File dummy.html, 1.4 KB (added by rabusmar, 11 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6<title>Foobar</title>
7
8<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
9<!--script type="text/javascript" src="js/jquery.form.js"></script-->
10<script type="text/javascript" src="js/jquery.validate.min.js"></script>
11<!--script type="text/javascript" src="js/additional-methods.js"></script-->
12<!--script type="text/javascript" src="js/messages_es.js"></script-->
13</head>
14
15<body>
16<script type="text/javascript">
17$(function() {
18    $("#main input.cancel").click(function() {
19        $("#dummy").val("");
20        //$("#main").valid(); // the form sends even uncommenting this line
21    });
22    $("#main").validate({
23        submitHandler: function(form) {
24            alert("Submitted!");
25        }
26    });
27    //$("#dummy").val("foobar");
28});
29</script>
30<form id="main" method="post" action="dummy.php">
31    <fieldset>
32        <legend>Dummy form</legend>
33        <div>
34            <label for="dummy">Dummy field:</label>
35            <input type="text" name="dummy" id="dummy" class="required" />
36        </div>
37        <div>
38            <input type="submit" value="Send" class="submit" />
39            <input type="button" value="Cancel" class="cancel" />
40        </div>
41    </fieldset>
42</form>
43</body>
44</html>