What in the world is wrong with this?
I made this today and it just doesn't want to work. I really have no idea why. Any help would be appreciated.
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>jQuery Popout Nav</title>
- <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
- <script type="text/javascript">
- $(function(){
- $('a').clicked(function() {
- $('#nav').toggle();
- });
- });
- </script>
- <style>
- #nav{
- background:red;
- height:300px;
- width:300px;
- }
- </style>
- </head>
- <body>
- <div id="nav"></div>
- <a href="#">Click me!</a>
- </body>
- </html>
Thanks,
Keenan