If I have an array of numbers split out like this:
var list = ['one', 'two', 'three', 'four, 'five', 'six', 'seven'];
And I have a div with class "four" and a pair of buttons:
<button id="buttonOne"></button>
<div class="four"></div>
<button id="buttonTwo"></button>
How can I make buttonOne reduce the class to "three" and buttonTwo increase it to "five"? I know this is probably kids stuff but any explanation would be very much appreciated.