开发者

add url in jquery accordion

开发者 https://www.devze.com 2023-01-12 22:42 出处:网络
I\'m having trouble with jquery accordion menu. I want ONLY the text \"Chewable Oraldolphilus\" go to a url. The requirement is that it should work with click not mouseover. Right now when you click a

I'm having trouble with jquery accordion menu. I want ONLY the text "Chewable Oraldolphilus" go to a url. The requirement is that it should work with click not mouseover. Right now when you click anywhere next to a link it goes to a url instead of just expanding the accordion. Please advise. Thanks.

http://www.m开发者_如何学Caxihealth.com/test/accordion3.html


I didn't look at the source code, but the following should work:

$(".head > div:first-child").click("function(){
 $(this).next().slideToggle(500);
  return false // this prevents the default behavior (changing the location of the page)  
}")
0

精彩评论

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