Detecting jquery-ui accordion open / close state

前端 未结 5 2101
眼角桃花
眼角桃花 2021-01-04 19:47

How do I conditionally handle when an accordion section is open. What I am asking is this (in pseudo code):

if (this-accordion-section-open){
   do something         


        
5条回答
  •  醉梦人生
    2021-01-04 20:29

    from the demo site, I noticed there's a ui-state-active class on opened section. So you can use jQuery.hasClass for your code...

提交回复
热议问题