Add html to div without replacing the current content in it
问题 I'm trying to add dhtml to the div with the id upload_results. That should work without replacing the current content in the div. The Code: (interesting part is at the bottom) <script language="JavaScript"> function do_show() { $("#webcamContainer").fadeIn(''); } webcam.set_hook( 'onComplete', 'my_completion_handler' ); function do_upload() { upload to server document.getElementById('upload_results').innerHTML = '<div>Uploading...</div>'; webcam.upload(); } function my_completion_handler(msg)