get the value of input type file , and alert if empty
<p>how to alert if input type file is empty !?</p>

<p>this is my jquery code but i didnt know how to get the value</p>

<pre><code>$('.upload').live("click",function()
{
    var imgVal = $('#uploadImage').val();
    if(imgVal=='')
    {
        alert("empty input file");

    }
    return false;

});


&lt;input type="file" name="image" id="uploadImage" size="30" /&gt;
&lt;input type="submit" name="upload"  class="send_upload" value="upload" /&gt;
</code></pre>
