travisbrown
Technical User
- Dec 31, 2001
- 1,016
I'm trying to set the value/innerHTML of a text area in a parent page from a popup. Is there anything obviously wrong with the script below? The first two elements are passing back properly. job_desc is not working with either innerHTML or value. I've double-checked that the id names are correct, and I'm not getting any errors in the FF error console.
The target element is
Code:
<script type="text/javascript">
function transferTemplate(id) {
window.opener.document.getElementById('job_mini_desc').value = document.getElementById('job_mini_desc_' + id).value;
window.opener.document.getElementById('job_title').value = document.getElementById('job_title_' + id).value;
window.opener.document.getElementById('job_desc').value = document.getElementById('job_desc_' + id).value;
//window.opener.document.getElementById('job_desc').innerHTML = document.getElementById('job_desc_' + id).value
//self.close();
}
</script>
The target element is
Code:
<textarea name="job_desc" id="job_desc">
</textarea>