title: Validate size of upload file in jquery
body: <p>I wrote this code:
  html:</p>
  
  <pre><code>   &lt;input type="file" id="Gfile_1" class="upfile"/&gt;
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(document).ready(function(){       
  $('.upfile').bind('change', function() {
  var a=(this.files[0].size);
  alert(a);
  if(a &gt; 80000);
  {
      alert('large');
  }
  
  })
  
  });
  </code></pre>
  
  <p>"alert(a)" show size of file correctly but if is always true.
  why?
  Thanks for any help.</p>