What's wrong with this jQuery example?
        Posted  
        
            by Sven Larson
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Sven Larson
        
        
        
        Published on 2010-04-18T18:26:42Z
        Indexed on 
            2010/04/18
            18:33 UTC
        
        
        Read the original article
        Hit count: 318
        
The following jQuery example should put some text into the div, but it doesn't. I tried Firefox, Google Chrome and Internet Explorer.
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" language="javascript"></script>
<script language="javascript">
$(window).load(function() {
  $('adiv').html('<p>hello world</p>');
  alert('done');
});
</script>
</head>
<body>
<div id="adiv">
</div>
</body>
</html>
Sorry, this might be stupid, but I'm stuck.
© Stack Overflow or respective owner