DOM: 代码如下: function DisplayTextBoxValue(){ var element = document.getElementById(‘textbox’); // set the attribute on the DOM Element by hand – will update the innerHTML element.setAttribute(‘value’, element.value); alert(document.getElementById(“container”)[removed]); return false; } jQuer