Event IF to apply style when button clicked if a specified style already set to the button
I have a 'Bootstrap' default widget button but when clicked I'm changing the style to:
- Background = blue
- Text = white
What I'm stuck doing though is if the button is clicked again and has the above set to, then set the below condition
- Background = White
- Text = #030303
I'm stuck wrapping my event with the 'IF' condition to check if the background is blue or not
Managed to do it using event 'ontoggle'
Managed to do it using event 'ontoggle'
Replies have been locked on this page!