<button class="btn btn-default" id="userSettings"><i class="fa fa-gear"></i>
<div class="settings">
<h1>panel settings</h1>
</div>
</button>
<button class="btn btn-default" id="userSettings" style="font-size: 20px;"><i class="fa fa-gear"></i>Test</button>
<div class="settings" style="display: none;">
<h1>panel settings</h1>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#userSettings').click(function(){
$('#userSettings + .settings').slideToggle();
})
});
</script>