9/16/2013 - 7:14 PM




<title>Exercise 2.3</title>

<link rel="stylesheet" href="style.css" type="text/css"/>
<script src='script.js'></script>



<button id="changeButton">Click to run your code!</button>

<div id='content'>
<em>Not much here yet...</em>


$(document).ready(function() {
$('#changeButton').click(function() {
//create a new link, using either syntax
$myNewLink =$('<a />')

//add a 'href' attribute of '/links' using .attr()

//set the html of the link to 'click here!'
$myNewLink.html('click here!');

//set the class of the link to 'important'

//code to add the link to the page... you'll 
//learn to do this very soon!