Thanks Chung and Chris. I doubt using .click() will work, as the button being clicked on is immediately replaced, and it is this new button that must rotate. The buttons are for expanding and collpasing sections of a webpage. Once a user clicks on an expand button, it is immediately replaced with a collapse button. And vice versa. Below is the TML:
<div class="expand-item"> <t:if test="expanded" negate="true"> <a t:type="actionlink" async="true"> <button class="accordion"> <img src="${context:/assets/expand-helm.png}" class="open-section" id="expand" alt="expand" width="100" /> </button> </a> </t:if> <t:if test="expanded"> <a t:type="actionlink" async="true"> <button class="accordion"> <img src="${context:/assets/collapse-helm.png}" class="close-section" id="collapse" alt="collapse" width="100" /> </button> </a> </t:if> </div> Chris, invoking my javascript within the page's Java code sounds interesting. I've not done this before, but will look into it. Do you have any sample code for this approach? Thanks, Chris. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org