Soldato
I've got a simple jQuery slideToggle and I want the button, which is a down chevron, to turn to an up chevron when clicked to show that its function is now to close the toggle. What's the simplest way of doing this without yet another plugin?
It can be overwritten with the corresponding up chevron icon, but that requires the script to know whether it's up or down to start with, whereas flipping it vertically or rotating 180 it matters not on its current state.
Help appreciated!
It can be overwritten with the corresponding up chevron icon, but that requires the script to know whether it's up or down to start with, whereas flipping it vertically or rotating 180 it matters not on its current state.
Help appreciated!