1<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
2
3<button>Item</button><button>Item</button><button>Item</button>
4
1$('button').on('click', function(){
2 $('button').removeClass('selected');
3 $(this).addClass('selected');
4});