How to programmatically chage accordion cell headerAlt

Is there a way to change an accordion cell’s headerAlt at programmatically, or is there a better way to go about this?

I have an accordion with a list each of the cells. The user selects an item from one list, it then collapses that accordion cell and expands another populated with list contents based on the selection. I would like to change the header bar of the first cell to something that reflects what was chosen.

I tried something like the following, but did not effect any changes:

$$( ‘accordionCellFoo’ ).headerAlt = “Bar”;

Try the following:


outstanding, that worked great