[英]Access jquery accordion with an external link
I have used Jquery UI accordion in my page and it is working as expected. 我在页面中使用了Jquery UI手风琴,它按预期工作。
I need to open the accordion panel with an external link which is a drop-down. 我需要通过一个外部链接打开一个手风琴面板。 How can I access accordion even with the drop-down list menu. 即使使用下拉列表菜单,如何访问手风琴。
Here is what I have done so far 这是我到目前为止所做的
// JavaScript Document
$(document).ready(function () {
//Add list menu
$('.droplist > li').hover(function () {
$(this).find('ul').toggle();
});
//Accordion
$( "#accordion" ).accordion({
collapsible: true,
active: false,
heightStyle: "content"
});
});
PS : HTML format can not be changed. PS :不能更改HTML格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.