My task for this evening is to show and hide a div (eventually two divs or more actually) when a link from the main nav is clicked. This will then hide divs when they click on another part of the main navigation.
DONE
Thanks go to everyone especially..Matchu....
the code is now as below and works....
<script type="text/javascript">
$(document).ready(function(){
$("#tagcloud").hide();
blogLink = $("ul.mainnav li.blog a").click(function () {
$("#tagcloud").show();});$("ul.mainnav li a").not (blogLink).click(function () {
$("#tagcloud").hide();});
});
</script>
If anyone can see any possible problems with this, using it at www.alwaystwisted.com/index.html please let me know....
Also, have just ordered JQuery 1.3 book....so hopefully get my head around it a bit or a lot better....
regards
Sty