check filename before posting using jquery/ php
<p>I need jquery to check if my posted filename (up_image) is empty or not.</p>

<p>if it's empty i need a div tag to be shown and come with some kind of alert message.   </p>

<p>if not, just do the </p>

<blockquote>
<pre><code>$("#submit").submit();
</code></pre>
</blockquote>

<pre><code>    &lt;form action="/profile/" method="post" enctype="multipart/form-data" id="submit"&gt;
 &lt;p&gt;
  &lt;label for="up_image"&gt;image:&lt;/label&gt;
  &lt;input type="file" name="up_image" id="up_image" /&gt;  
 &lt;/p&gt;
 &lt;a href="javascript:;" id="post_submit" class="submit_btn"&gt;Upload&lt;/a&gt;
&lt;/form&gt;
</code></pre>
