$(document).ready(function(){
   $('.colorForm input, .colorForm textarea').focus(function() {
        $(this).closest('.colorForm').addClass('active');
        $(this).closest('.colorForm').find('input').addClass('preActive');
        $(this).closest('.colorForm').find('textarea').addClass('preActive');
        $(this).addClass('active');
   }).blur(function() {
        $(this).closest('.colorForm').removeClass('active');
        $(this).closest('.colorForm').find('input').removeClass('preActive');
        $(this).closest('.colorForm').find('textarea').addClass('preActive');
        $(this).removeClass('active');
   });
})
