jQuery .attr('value', 'new_value') not working?
<p>I am trying to dynamically change the actual HTML <code>value</code> attribute of an input using jQuery. Although using <code>input.attr('value', 'myNewVal');</code> works to change it visually, when I inspect the source using Developer Tools in Chrome, the HTML attribute hasn't changed.</p>

<p>Since I'm doing a check in some PHP later on to see if the input has its original value, I need a way of changing the actual HTML attribute, ideally in jQuery. Has anyone else encountered this annoying bug and do any of you guys know a workaround?</p>

<p>I've also tried with <code>.val()</code> and the same happens - the underlying HTML attribute is unchanged.</p>
