Bug Tracker

Ticket #5313: jquery_form_test.html

File jquery_form_test.html, 905 bytes (added by edelgadom, 13 years ago)
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
8        <title>Form selector + IE</title>
9        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
10        <script type="text/javascript" charset="utf-8">
11           $(document).ready(function(){
12               $("form").change(function(){
13                   $("#log").append("<p>The form has changed</p>");
14               });
15       });
16        </script>
17       
18</head>
19<body>
20    <form action="" method="get" accept-charset="utf-8">
21        <select name="some_name">
22            <option value="option1">option1</option>
23            <option value="option2">option2</option>
24        </select>
25    </form>
26    <div id="log"></div>
27</body>
28</html>