I want to add a class to the button that is clicked and remove that class from all of the siblings(button). The below code adds the CSS for the buttons which I click and unable to remove the CSS for the buttons that are already applied.
$("#followingButtonsId").children().addClass('buttonSelected')
.parent().siblings().find('.buttonSelected').removeClass('buttonSelected');
.buttonSelected { background: #5b2200;}
<div class="row" id="followingButtonsId">
<button class="buttonSelected">Button1</button>
<button>Button2</button>
<button>Button3</button>
</div>