Why can't I reference the DIV using the jQuery format?  Here is the
example (minus opening HTML):

<script language="javascript" src="js/jquery-1.2.3.pack.js"></script>
<script language="javascript">
<!--
$(function(){
        $("#button").bind('click',filldiv);
});
function filldiv(){
        // $('#info').innerHTML='Test';  <--- This doesn't work!
        document.getElementById("info").innerHTML="Test";
        }
//-->
</script>
</head>

<body>
<input type="button" id="button" name="button" value="Testing" />
<div id="info"></div>
</body>
</html>

Reply via email to