jQuery IE and Events Question

jQuery IE and Events Question

Hello,

I'm having a crazy problem with getting onclick events recognized by IE using jQuery. Sample code below. If you click on the non-popup div the onclick event is recognized in FF and IE and blah() is called. If you click on the "Click Here" text another div is created by jQuery and displayed. This div also has an onclick callback. FF recognizes this and calls blah() when this div is clicked but IE doesn't. Argh! The two divs are virtually identical except for a little positioning.

Any ideas how I can get IE to recognize onclick on a jQuery-created div?
Thanks!
Greg

<HTML xmlns="http://www.w3.org/1999/xhtml">
   <HEAD>
      <SCRIPT src="jquery-1.2.6.js" type=text/javascript></SCRIPT>

      <SCRIPT type=text/javascript>
         function blah() {
            alert("Blah");
         }
         
         function hit(target) {
            var mydiv = jQuery("<div/>").addClass("hey").css({
               "position":"absolute",
               "top":"100px",
               "left":"100px"
            }).attr({
               "onclick":"blah()"
            });
            jQuery("body").append(mydiv).show();
         }
      </SCRIPT>

      <STYLE type=text/css>
         div.hey {
            background-color: #f0f0f0;
            height: 30px;
            width: 60px;
         }
      </STYLE>

   </HEAD>

   <BODY>
      <span onclick="hit(this)" class="editable" id="hitme">Click Here</span>
      <div class="hey" onclick="blah()"/>
   </BODY>
</HTML>