title: Get text in input field and check if it's equal to it's value attribute?
body: <p>I have this when the page loads</p>
  
  <p><code>&lt;input class="input" id="accountNameUsernameForm_name" name="profile[real_name]" size="30" type="text" value="George"&gt;</code></p>
  
  <p>When a submit trigger is pressed I want to check if the current text in the input field is the same as it's value attribute?</p>
  
  <pre><code>if ( $('.input').val() != $('.input').attr('value') ) {
          $(this).addClass('formLoading');
  }
  </code></pre>
  
  <p>However the problem is, val() and the attr('value') are always the same. What function retrieves the current text that is in the input right now without looking at its value attribute?</p>
  
  <p>thank you</p>
  
  <p>btw. it doesn't work with <code>text()</code>!</p>