help with slideToggle please
I've been try for the last 24 hours to get this to work right and it just driving me nuts.
HTML:
- <div class="thecourse">
- <div class="category"></div>
- <div class="subcategory"></div>
- <div class="subcategory">
- <p class="getcourse"></p>
- <p class="summary"></p>
- </div>
- </div>
this repeats several times. Basically i only want the category to slideToggle to the next category and leave the other ones below it expanded.
And here is what i have been try to get to work:
- $(".thecourse").each(function(){
- $(".category").click(function(){
- $(".subcategory, .getcourse", this).next(".category:eq(0)").slideToggle("slow");
- })
-
- });
any help would be soooo greatly appreciated.