Uncaught TypeError: Cannot read property 'guid' of undefined

Uncaught TypeError: Cannot read property 'guid' of undefined

I have the following JQuery code:

  1. $("#menu-247 > a, #menu-213 > a, #menu-214 > a, #menu-215 > a, #menu-216 > a, #menu-218 > a, #menu-219 > a").addClass("mainLevel");  
  2.   /*$(".mainLevel").each(function (i) {
  3.     $(this).before('<div id="' + $(this).parent().attr("id") + '-behind">&nbsp;</div>');
  4.     $(this).prev().css({
  5.       width: $(this).css("width"),
  6.       height: $(this).css("height"),
  7.       position: "absolute",
  8.       top: "0",
  9.       left: $(this).parent().css("left"),
  10.       zIndex: "5",
  11.       display: "none",
  12.       backgroundColor: "blue"
  13.     });
  14.     $(this).css({
  15.       position: "relative",
  16.       zIndex: "10"
  17.     });
  18.   });*/
  19.   
  20.   $(".mainLevel").hover(function() {
  21.     alert('test');
  22.   });
And I receive the error "Uncaught TypeError: Cannot read property 'guid' of undefined" in Google Chrome.

I thought it had to do with the fact that the event handler was trying to be added before the DOM was modified.  But then I tried simply this:

  1. $("#menu-247 > a, #menu-213 > a, #menu-214 > a, #menu-215 > a, #menu-216 > a, #menu-218 > a, #menu-219 > a").hover(function() {
  2.     alert('test');
  3.   });
And still received the error.  I removed all the "> a" so I simply had a list of ids and the error was still there.  Even when I only have one id listed, the error comes up!  It also seems to be any element.

But if I just try the alert part, everything works.

Any ideas?  Thanks!