I am just beginning to
Develop a website and I'm
A newbie to web
Development.
I created a dreamweaver
Template with a top level
Navigation menu. The
Menu was created using
<li> and <a> with some
Css. I used a class
'selected' with li to make
It seem selected.
The jquery code:
$("nav li").click(function
(){
$("nav li").removeclass();
$(this).addclass
("selected");})
Now to the problem...
When I test the template file
In browser, the clickd
Menu item looks selectd. But
After I added <a>
Elements 'links' to some
Other pages the 'selection'
Is still on the first li.
I think my question make
Sense...
Addtion:
The a element is inside li
And takes the same width
And height of li. And if there is no
Href to <a>,it works fine. Please help
How to solve it
Thanks