problem with show hide toggle and .next()
I've got the following working on a menu where I have links: a class="show" followed by div class="showme"
it works toggling all divs at once but when I try to use next() I get nothing - I can't see what could be wrong:
(the //commented out bit is the next() attempt which doesn't work)
- <script type="text/javascript">
jQuery(document).ready(function() {
jQuery("a.show").click(function(){
jQuery(".showme").slideToggle(500);
// jQuery(this).next(".showme").slideToggle(500);
return false;
});
});
</script>
hope someone can see where I've gone wrong here..
thanks in advance