Minifycode 2021-10-03 Viewed 1.4K times Jquery

In this article, you will learn how to make the file upload field mandatory in Jquery?

 

var file1 = $("#file_1").val();
        if (file1 == '') {
            $("#file_1").focus();
            return false;
        }

How to make file upload field mandatory in Jquery
minify code