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>
jQuery(document).ready(function($){
if(document.getElementById("field_aaeer2").selectedIndex > 0) {
$('#frm_field_353_container h3.frm_trigger').click();
}
});
</script>
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.