You can edit / change the code and click run button
replaceWith demo
Sample click 1
Sample click 2
Sample click 3
When you click on each button it will first remove the old button style and adds a new style in its place