View the original code certainly can not see, js is a client-side language, will not be compiled through the server. You can document.getElementById("div's ID").innerHTML="append content";; then use alert(document.getElementById("div's ID").innerHTML); to see if it was added successfully.