My previous post might be helpful. I'm not sure because you've given so little information. I can't even tell if you mean a technical hash value or just something that you are calling a hash. That might not be important, but may. And what code you've given looks poorly written and error ridden.
So, even if you do the sensible thing (there are other approaches) and just take whatever string you have and assign it to the form element's value property (as outlined in a more specific way in my previous post):
Code:
document.getElementById('text_input_id').value=string;
There could be other problems. If you need more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks