I've been following several tutorials, trying to learn JQuery and I've
been having some difficulty with what should be a trivial task.  When
I click a link to activate something like a <div> toggleing in and out
of site, I get jumped to the top of the page.  Also, my functions
don't seem to be working.  Can somebody help me with this?

<a href="#" class="comment_toggle">[show comments]</a>
<script type="text/javascript">
$(document).ready(function(){

        $("a.comment_toggle").click(function(){$(div.comment").toggle();
return false;});
        });
</script>
<div class="comment">Here is the comment</div>

CSS
.comment {
        display: none;
        border: 1px black solid;
}

Reply via email to