title: Why does jQuery val() function not update attribute 'value'?
body: <p>I came across with this issue way after I completed the website since I had to implement history in ajax based page (which requires to update certain places with html (which includes forms with simple text <strong>inputs</strong> - that's where the problem - <strong>they don't get their values assigned, because they have their values set by val() and not by attr()</strong> - lies)). Am I doomed to have to replace all javascript from</p>
  
  <pre><code>$('#xxx').val('someValue');
  </code></pre>
  
  <p>to</p>
  
  <pre><code>$('#xxx').attr('value', 'someValue');
  </code></pre>
  
  <p>or there is some hope to bypass this? </p>
  
  <p>A pretty trivial example <a href="http://jsfiddle.net/Qd52v/">here</a>. As you can see in the dialog, attribute <strong>value</strong> is not set in html code.</p>