Event IF to apply style when button clicked if a specified style already set to the button

Tony Murday shared this question 13 days ago
Need Answer

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

Comments (1)

photo
1

Managed to do it using event 'ontoggle'