i have a simple input file but I\'m trying to validate after the post if the input file has content.
I
try to get the value after the form submission like this
$('#yourform').submit(function(){ var val = $("#file").val(); if(val == ''){ return false; } });