关于DIV获得值的问题,在线等
<div id= "123 "> 11111 </div>
JS怎么获得1111这个值啊?
------解决方案-------------------- <html>
<head>
<script language=javascript>
window.onload=function(){
var o=document.getElementById( "123 ");
alert(o.childNodes[0].nodeValue);
}
</script>
</head>
<body>
<div id= "123 "> 11111 </div>
</body>
</html>