Flip Icon Without Redraw
Posted: Mon Mar 20, 2017 8:31 pm
Hey Guys,
I know I'm missing something basic here - but what I'm trying to do is not rocket science... I have a HTML list that I generated. It has an icon it that I want to change out to a different icon when the user clicks on it.
I've tried a few different methods - none successfully:
1) Use an IMG - and then use WebClientUtils to update the SRC of the image.
2) Create a CSS class using a background URI image, and replace the image with a div that has that image class, then use WebClientUtils to change the class to a different class that has a different background URI image.
Nothing seems to work.
Suggestions?
THANK YOU in advance!
I know I'm missing something basic here - but what I'm trying to do is not rocket science... I have a HTML list that I generated. It has an icon it that I want to change out to a different icon when the user clicks on it.
I've tried a few different methods - none successfully:
1) Use an IMG - and then use WebClientUtils to update the SRC of the image.
2) Create a CSS class using a background URI image, and replace the image with a div that has that image class, then use WebClientUtils to change the class to a different class that has a different background URI image.
Nothing seems to work.
Suggestions?
THANK YOU in advance!