Hi peeps, I wonder if you can help me at all. I am recreating a simple design, just doing some testing really, and what I am trying to achieve is to hide and show the navigation on the left side, here's the website: http://antobbo.webspace.virginmedia.com/various_tests/worktest/test.htm
So ideally when i click on section one the nested bullet list come up and so on.
Problem is, it's not working and I am a bit unseure as to why.
Here's the code.
HTML:
...
<head>
<title>This is a test</title>
<link rel = "stylesheet" type = "text/css" href = "style.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type = "text/javascript" src = "script.js"></script>
</head>
<body>
<div class = "wrapper">
<div class = "navigation">
<ul class = "nav_bullet">
<li><a href = "#">Section one</a>
<ul class = "nested hidden">
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ul><!-- end of nested -->
</li>
<li><a href = "#">Section two</a>
<ul class = "nested hidden">
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ul><!-- end of nested -->
</li>
<li><a href = "#">Section three</a>
<ul class = "nested hidden">
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ul><!-- end of nested -->
</li>
<li><a href = "#">Section four</a>
<ul class = "nested hidden">
<li>Link1</li>
<li>Link2</li>
<li>Link3</li>
</ul><!-- end of nested -->
</li>
</ul>
</div><!-- end of navigation -->
...
Here's the relevant css:
...
.navigation
{
border: 1px solid blue;
width:19%;
float:left;
margin-top:70px;
}
.clearing
{
clear:both;
}
.nav_bullet li
{
list-style:square;
}
.nested li
{
list-style:none;
}
.hidden
{
display:none;
}
.visible
{
display:block;
}
...
and finally the script:
$(document).ready(function(){
$(".nav_bullet li").click(function(){
$(this).removeClass("hidden").addClass("visible");
)};
)};
Firebug is returning this error:
syntax error
script.js (line 4)
But to be honest I can't spot any syntax error, any idea please?
thanks