开发者

jQuery slideUp slideDown help, it's slideToggle [closed]

开发者 https://www.devze.com 2023-03-30 07:39 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

开发者_运维问答 Improve this question

If 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.


  1. Put an alert in the click event, are you getting to the function?
  2. 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"
  3. Same applies for the #rightsidediv

Failing that, post some HTML so we can see.

0

精彩评论

暂无评论...
验证码 换一张
取 消