$(document).ready(function(){ $('.messd:first').addClass('mesAct'); $('.orderBlock:first').addClass('orAct'); $('.resButtonF1').click(function(e){ e.preventDefault(); $('.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); }); $('.selectpicker').selectpicker({ style: 'btn-info', size: 4, width: '237px' }); $('.selectpicker2').selectpicker({ style: 'btn-info', size: 4, width: '90px' }); $('.selectpicker3').selectpicker({ style: 'btn-info', size: 4, width: '360px' }); $('.selectpicker4').selectpicker({ style: 'btn-info', size: 4, width: '254px' }); $('.selectpicker5').selectpicker({ style: 'btn-info', size: 4, width: '117px' }); });