I am trying to dynamically change the actual HTML value attribute of an input using jQuery. Although using input.attr(\'value\', \'myNewVal\'); wor
value
input.attr(\'value\', \'myNewVal\');
Don't use .attr() to change the value, use .val(), which was made specifically for this purpose:
.attr()
.val()
input.val("new value");