The following jQuery example should put some text in a div, but it is not. 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.
source share