I have an image upload form with the following element:
<input type="file">
I need to hide a div and only show it when a file is selected.
$("#myDiv").hide();
Do I need to add an ID to the form element and do onchange check if it’s !empty? Not sure.
Fiddle: http://jsfiddle.net/maniator/eVSxD/