$('form input').focus(function() { $(this).prev('label').addClass('active'); });
label.active{ color:#000; }