Oops, try again. Unable to get property '1' of undefined or null reference


#1
$(document).ready(function(){

  $('div').hover(
function(){
    //$(this).mouseover(function() {
        $(this).addClass('active');
    //});
},
function(){
    //$(this).mouseleave(function() {
        $(this).removeClass('active');
    //});
}
  );

});

For 6. Hover exercise I m getting the above error. Can anyone tell me where m I going wrong?


#2

Never mind! Got it. Be careful and follow all instructions carefully!