How to check input file is empty, and also display an alert if png format is selected using jquery

Viewed 48036

I have got an input file upload , need to check which file is uploaded / if no file is selected by the client using jquery.

<input type="file" name="files" id="file1" style="color:White" />
<input type="submit" value="Create" />

The check should trigger when submit is clicked.

4 Answers
Related