开发者

add url in jquery accordion

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜