How to Open or Close Each Individual Accordion
Posted: 04 Jun 2015
I'm using the following link: viewtopic.php?f=1&t=106
But I'm having a hard time A) making all Accordions collapsed by default, and B) making the next according open based on field change.
What I want to happen is the next accordian to open with the last field on the previous accordion has been filled out.
I can make it work for the first accordion, but I don't know how to "identify" the next accordion section via Javascript.
Here's my current code:
fd.field('Product').change(function() {
$('#fd_accordion-0 > h3:eq(0)').click()
});
But I'm having a hard time A) making all Accordions collapsed by default, and B) making the next according open based on field change.
What I want to happen is the next accordian to open with the last field on the previous accordion has been filled out.
I can make it work for the first accordion, but I don't know how to "identify" the next accordion section via Javascript.
Here's my current code:
fd.field('Product').change(function() {
$('#fd_accordion-0 > h3:eq(0)').click()
});