Doing $(\"#someId\").val(\"newValue\") doesn\'t change the DOM -- I can retrieve this value with $(\"#someId\").val(), but the element in the DOM s
$(\"#someId\").val(\"newValue\")
$(\"#someId\").val()
.val() does change the DOM. For example this:
$("#someId").val("newValue"); alert(document.getElementById('someId').value);
alerts 'newValue'.
See DEMO.
If you want to change the default value to be used in form resets, try this:
$("#someId").attr("defaultValue", "newValue");