jQuery slideUp slideDown help, it's slideToggle [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
开发者_运维问答 Improve this questionIf i click a division it will slidUp and if i click that division again it will slideDown. How can i do this ?
$("#id_color_tags").click(function(){
$("#rightsidefive").slideToggle();
})
Tried that but that didn't work.
- Put an alert in the click event, are you getting to the function?
- Are the names right. asp.net can alter names so maybe select on a class name instead. So
<div class="thisclass">
and the selector then becomes ".thisclass" - Same applies for the #rightsidediv
Failing that, post some HTML so we can see.
精彩评论