Spry collapsible panel swap text onclick
Hi, i am creating a spry collasible panel, i am wondering it is possible when onClick swap text and restore text onClick again? i have tried swap image function onClick, but it failed to restore onClick..
here is my spry collasible panel:
<div id="CollapsiblePanel2" class="CollapsiblePanel">
<div class="CollapsiblePanelTab style27" tabindex="0"><span class="style31">!!!Text1!!!</div>
<div class="CollapsiblePanelContent style27">
<table width="132" height="86" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="26" class="style27">Content 1</td>
</tr>
<tr>
<td height="28"><p class="style27" valign="top">Content 2</p> </td>
</tr>
<tr>
<td><span class="style27">Content 3</span></td>
</tr>
</table>
</div>
</div>
It is possible to swap the "!!!Text1!!!" to others desired text onClick , then restore it onclick?
Thanks