I have a simple input field inside a form tag:
Input
I figured it out. The value was set by jQuery but when I viewed the source the new value wasn't shown. I tried this (thanks to Fermin):
$('#foo').val('poo') alert($('#foo').val())
and it displayed the modified value.