here is the html
<div class="btn-group" style="width:100%">
<a href="#Home" style="width:10%" class="button">home</a>
<a href="#Hobbies" style="width:10%" class="button">Hobbies</a>
<a href="#contact_us " style="width:10%" class="button">Contact</a>
<a href="#services" style="width:10%"class="button">Services</a>
<a href="#surprise"><img src="cat.png" id="cat" ></a>
</div>
here is the jquery i thought should work
jQuery("#btn-group .button").click(function(){
jQuery("#btn-group .button").removeClass('active');
jQuery(this).toggleClass('active');
});
and the css part
.active{
background-color:#f06f06;;
}
button.btn-group:active{
background-color:#f06f06;
}