Relative Content

Tag Archive for javascripthtmlcssformsbootstrap-4

How to remove the active state on a button when clicking on an input

I am building a component with 4 preset buttons and a custom range input. I am able to toggle the active state on the buttons when clicking them but I want to remove the active state from all the buttons when I click into the input. I also want to clear the input field when I click out of the input.