This works in IE (and FF, I believe):
if(document.getElementById("uploadBox").value != "") {
// you have a file
}
More Related Contents:
- Remove a FileList item from a multiple “input:file”
- Putting default value in
- 5 stars and the golden 5 stars are not together (When browsing with Internet explorer)
- PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my "type=text box" until the Other option is chosen in the dropdown option
- Dynamically adding div on button click and changing Id of each?
- How to make page loaders/animations/transitions
- Get specific text from html tag jquery [duplicate]
- How to change the image while sharing the content to the social networks? [duplicate]
- How to show Page Loading div until the page has finished loading?
- How exactly does work?
- Open URL in same window and in same tab
- How do I add an “Add to Favorites” button or link on my website?
- Get local href value from anchor (a) tag
- Textarea that can do syntax highlighting on the fly?
- Getting Bootstrap’s modal content from another page
- How to upload image into HTML5 canvas
- Run change event for select even when same option is reselected
- Enter key press behaves like a Tab in Javascript
- JQuery Slider, how to make “step” size change
- HTML comments in a javascript block?
- How to move table row in jQuery?
- How to draw polygons on an HTML5 canvas?
- show loading icon until the page is load?
- How to use square cursor in a HTML input field?
- Why can’t I get the input from the input box?
- Create thumbnail from video file via file input
- Media Source Api not working for a custom webm file (Chrome Version 23.0.1271.97 m)
- Polymer 1.0 Global Variables
- How to access css properties in javascript when applied via external CSS file?
- Cross-Origin resource sharing and file://