javascriptsyntax-error

What's wrong with my JQuery syntax here?


This code is throwing me a syntax error:

$("body").live("click", (function(){ 
        if ((! mouse_is_inside) && ($("div#notification_box").is(":visible"))) {
           $("div#notification_box").hide();
           $("p.exclamation").removeClass("exclamation_hover");
           $.ajax("/videos/update_box.js");
      }     
    });

Solution

  • Remove the ( before function. You have mismatched parentheses.