Assuming TheTextField is the identifier of your input field, this works fine.
$('#TheTextField').val(""); $('#TheTextField').hide();
In any case, if you use FireBug and you look at the input field while you are hidden, you will see that the value attribute still has a value that it really does not have, but when you show it again:
$('#TheTextField').val(""); $('#TheTextField').hide(); $('#TheTextField').show();
the input field that you see in the browser, unlike what you see in FireBug, it no longer matters.
source share