1 | <html> |
---|
2 | <head> |
---|
3 | |
---|
4 | <script type="text/javascript" src="/survey2009/site_media/jquery/js/jquery-1.3.2.min.js"></script> |
---|
5 | |
---|
6 | <script type="text/javascript"> |
---|
7 | $(document).ready(function(){ |
---|
8 | |
---|
9 | $("input").focus(function () { $("p").append("<br>focus "+this.id) }); |
---|
10 | $("input").blur(function () { $("p").append("<br>blur "+this.id) }); |
---|
11 | $("input").change(function () { $("p").append("<br>change "+this.id) }); |
---|
12 | $("input").click(function () { $("p").append("<br>click "+this.id) }); |
---|
13 | }); |
---|
14 | </script> |
---|
15 | </head> |
---|
16 | <body> |
---|
17 | <input type="checkbox" name="test1" id="test1"> |
---|
18 | <input type="checkbox" name="test2" id="test2"> |
---|
19 | <p></p> |
---|
20 | </body> |
---|
21 | </html> |
---|