How to add a change in the background color of the active block to this script
var $texts = $('.view-source .hide'); $texts.not(':first').hide(); $('.view-source .class_click').on('click', function () { $texts.slideUp(500); $(this).parent().find('.hide').slideDown(500); });