Accordion jQuery UI Options not working

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to
Nov 01, 2018 09:16 PM 1 Answers General
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe



in the past I was able to use something like that:



    var o = (new Date).getDay(); // Get the Daynumber

    var c = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")[o]; // Set a name fr the number (4 = Donnerstag)

    "Montag" == c ? (jQuery("#accordions-272.accordions").accordion("option","active",0),

























But after the last updates this solution does not work anymore for me. I get an error in the browser console.

(Uncaught Error: cannot call methods on accordion prior to initialization; attempted to call method 'option')

Did this plugin use the jquery ui accordion still? Or have anything changed in the code?

Thanks for your help.



2 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Nov 01, 2018

Welcome to our forum.

Can you please run your code under footer at the bottom, i hope this will still work with the latest version.

We just optimize js file loading not include on site header but under shortcode where loading accordion.

Let me know the update.


Sign in to Reply
Replying as Submit

Please use to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets