title: How to check if value of input is empty after browser refresh?
body: <p>I want to hide all inputs with class "chang" that contain any value after browser refresh, but entered by the user before refreshing. I tried few things, and nothing works. It's my HTML code:</p>
  
  <pre><code>&lt;input class="chang" id="test1" /&gt; &lt;input class="chang" id="test2" /&gt;
  </code></pre>
  
  <p>And script:</p>
  
  <pre><code>$(document).ready(function() {
  
  if( $(".chang").val().length != 0 ) {
  $(this).hide();
  }
  
  });
  </code></pre>
  
  <p>I tried to make it works in Firefox (if it's matter). What am I doing wrong in this case?</p>