(" + formattedSize + ")"); $currentSizeInput.val(fileSize); }else { $span.html(defaultLabelVal); $currentSizeInput.val(0); }}); $input .on("focus", function (){$input.addClass("has-focus"); }) .on("blur", function (){$input.removeClass("has-focus"); }); }); }; initInputFile();