document.getElementById('field').onchange=function() { document.getElementById('image_id').title=this.value; } like that?