Blame view

src/test/resources/sandbox.html 861 Bytes
bernard authored
1 2 3 4 5
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
bernard authored
6 7 8 9 10 11 12 13 14 15 16
    <script type="text/javascript" src="jquery-1.3.2.js"></script>
    <script type="text/javascript">
        jQuery(function() {
            jQuery("#clickable").click(function() {
                alert("Clicked " + this.id);
            });
            jQuery("#clickable2").click(function() {
                alert("Clicked " + this.id);
            });
        });
    </script>
bernard authored
17 18 19 20 21
</head>
<body>
<img id="close" onclick="var e = document.getElementById('elementToHide');e.removeChild(e.firstChild)" alt="close"/>

<div id="elementToHide">elementToHide</div>
bernard authored
22 23 24 25 26 27 28

<div id="clickable">Click me</div>
<div id="clickable2">
    <a>
        <span id="clickable2child">Clickable child</span>
    </a>
</div>
bernard authored
29 30
</body>
</html>