$(document).on('focus focusout', 'input, textarea', function(e){
e.type === 'focusin' ? $(this).prev().addClass('labelfocus');
e.type === 'focusout' && $(this).val() <= 0 ? $(this).prev().removeClass('labelfocus');
}
})
e.type === 'focusin' ? $(this).prev().addClass('labelfocus');