justinmind-logo
 
Upvote 1

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

Answered Tony Murday 3 years ago

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

Replies (1)
photo
1

Managed to do it using event 'ontoggle'

Leave a Comment
 
Attach a file