$(document).ready(function(){ $('.resButtonF1').click(function(){ $('.slideRes').toggleClass('activeSlide'); if($('.slideRes').hasClass('activeSlide')) { $('.slideRes').slideUp(300); $(this).css('transform','rotate(180deg)'); } else { $('.slideRes').slideDown(300); $(this).css('transform','rotate(0deg)'); } }); $('.showPress').click(function(){ var ind = $('.showPress').index(this); $('.showSpec').eq(ind).slideDown(300); }); $('.orderBlock').hover(function(){ var ind = $('.orderBlock').index(this); $('.hideOBB').eq(ind).slideDown(300); $('.dimovChat').eq(ind).css('transform','rotate(90deg)'); }, function(){ var ind = $('.orderBlock').index(this); $('.hideOBB').eq(ind).slideUp(300); $('.dimovChat').eq(ind).css('transform','rotate(0deg)'); }); $('.selectpicker').selectpicker({ style: 'btn-info', size: 4, width: '237px' }); $('.selectpicker2').selectpicker({ style: 'btn-info', size: 4, width: '90px' }) });