I have a collapsible set that is dynamically populated with the results of a service.
I have a button that is outside of the collapsible set.
I would like to expand a certain collapsible block when the button is clicked.
The targeted collapsible block is based on it's position in the set (for example... I may want to expand the second block down).
I need to be able to do this with JavaScript.
codeAppery('mobilecollapsblock', this).trigger('expand');/code This code by itself won't cut it since the button calling it does not fall inside the block or set.
Any easy way to get the id of a dynamic block based on its index or something like that?
Code samples/examples are much appreciated!