Just check the length of files property, which is a FileList object contained on the input element
if( document.getElementById("videoUploadFile").files.length == 0 ){
console.log("no files selected");
}
More Related Contents:
- jQuery append function is just appending the html but not the classes related to it
- jQuery .animate function not responding properly
- Reloading a single div in an html page [closed]
- How to decode HTML entities using jQuery?
- jQuery/JavaScript collision detection
- Reload an iframe with jQuery
- jQuery click not working for dynamically created items [duplicate]
- Stop setInterval
- Finding line-wraps
- How to make a simple image upload using Javascript/HTML
- Creating a jQuery object from a big HTML-string
- How to format/tidy/beautify in JavaScript
- jQuery sort elements using data id
- Creating a select box with a search option
- How to tell which row number is clicked in a table?
- Jquery Event Not Triggering for DOM Elements Created after page load [duplicate]
- Submit form after calling e.preventDefault()
- jQuery in Chrome returns “block” instead of “inline”
- Close a div by clicking outside
- Change form values after submit button pressed
- JavaScript on the bottom of the page?
- How to write into a file (in user directory) using JavaScript?
- How can I prevent a click on a ‘#’ link from jumping to top of page?
- Prevent iOS bounce without disabling scroll ability
- ToggleClass animate jQuery?
- How can I dynamically highlight strings on a web page?
- How to get an element by its href in jquery?
- Fire oninput event with jQuery
- Keep tabbing within modal pane only
- canvas- Cropping images in different shapes