expand collapsable section on page load IF

By: Andres Garcia | Asked: 12/24/2022
ForumsCategory: General questionsexpand collapsable section on page load IF
Andres Garcia asked 1 year ago
I have a drop-down box inside of my collapsable section, and this drop-down box gets its default value from the URL param. If this field isnt used, great, no need to expand the section automatically. But if it has a value, then I want the section expanded. Dropdown - field_aaeer2 Section - frm_field_353 <script>
if(document.getElementById("field_aaeer2").selectedIndex > 0) {
$('#frm_field_353_container h3.frm_trigger').click();
Rob LeVineRob LeVine replied 1 year ago

I'm confused because the post is phrased as a statement. My guess is that something's not working, but what is or isn't happening? Posting a link to the page is also very helpful.

1 Answers
Victor Font answered 1 year ago

What's the problem you're asking about?

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community