https://code.jquery.com/jquery-3.2.1.min.js
$(document).ready(function(){
$(“.form form > .input > input”).each(function(index) {
if($.trim($(this).val()).length != 0) {
$(this).parent().addClass(“focus”);
}
})
})
$(“.form form > .input > input”).on(“focus blur”, function(){
if($.trim($(this).val()).length == 0) {
$(this).parent().toggleClass(“focus”);
}
})