I am trying to dynamically change the actual HTML value attribute of an input using jQuery. Although using input.attr(\'value\', \'myNewVal\'); wor
The dev tools show you the source code as it arrived from the server (for the value attribute), so you see the truly original value.
If you want to alter it (and check against the new value) you can store a reference somewhere. Best would be to use the .data() method and check against that stored value.
For usage purposes though (submitting or accessing it through JS), changing the value through the .attr() or .val() method should be enough.