You have won
You have won
You have won
The jQuery Code START
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script>
function addContent() {
$("p").slice(1,2).append("$1,000,000!");
}
unction addContent2() {
$("p").append("...just kidding");
}
</script>
<style type="text/css">
.code { color: red; }
.back { background-color: yellow; }
</style>
</head>
<body>
<h1>jQuery: Appending content to a slice</h1>
<p>You have won </p>
<form action="">
<input type = "button" value="See how much you've won" onclick="addContent()"></input>
<input type = "button" value="Is this for real??" onclick="addContent2()"></input>
</form>