Please help, I'm new to web design and want to make the demo below work but it seems my HTML is not linking to my javascript. please view the code below, the demo is also available at http://jsfiddle.net/xx9ykonc/ How do I make it work, I don't understand whats missing.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style1.css">
</head>
<body>
<table>
<tr>
<td><div>1</div></td>
<td><div>2</div></td>
<td><div>3</div></td>
<td><div>4</div></td>
</tr>
</table>
<script>
$('table div')
.on('mouseenter', function(){
var div = $(this);
div.stop(true, true).animate({
margin: -10,
width: "+=20",
height: "+=20"
}, 'fast');
})
.on('mouseleave', function(){
var div = $(this);
div.stop(true, true).animate({
margin: 0,
width: "-=20",
height: "-=20"
}, 'fast');
})
</script>
</body>
</html>