modifying css of buttons

modifying css of buttons

i have a page of plan selections, and buttons for each plan.  there are two per each (one at the bottom, and at the top) for the same plan.  I would like a user be able to select one, and the css of that button plan type change, and if they select another one, revert the previous css of the one that was changed, and apply the changes to the newly selected one.  would i do something like this?:

$('#buttonPlanSelect').each( function( index ) {
    $(this).addClass('test'); // changes all of the buttons to the original css
                        // here, change the css of the selected button plan type
});