How would you set the default value of a form text field in JavaScript?
You can also try:
document.getElementById('theID').value = 'new value';