Bug Tracker

Ticket #4618: test.html

File test.html, 655 bytes (added by jamesfancy, 13 years ago)

The sample file. jquery.js should be put into the same directory.

Line 
1<html>
2<head>
3    <meta http-equiv="Content-Type" content="text/html;charset:utf-8"/>
4    <title>Test</title>
5</head>
6<script type="text/javascript" src="jquery.js"></script>
7<script type="text/javascript">
8$(function() {
9    //$.get("t.html", function(data) {
10    //    $(data).find(":header").each(function() {
11    //        $("body").append("<div>" + $(this).html() + "</div>");
12    //    });
13    //});
14    $("<h1>1</h1><h2>1.1</h2><h3>1.1.1</h3><div><h1>2</h1><h2>2.1</h2><h3>2.1.1</h3></div>")
15            .find(":header").each(function() {
16        $("body").append("<div>" + $(this).html() + "</div>");
17    });
18});
19//</script>
20<body>
21</body>
22</html>