How To Change Active Class Of Button In Javascript

how to change active class of button in javascript

Prevent bootstrap 4 from adding automatically active class
Simple CSS for buttons. Default Buttons. To create a Pure Button, add the pure-button classname to any or