javascript - jQuery Uncaught TypeError: Cannot call method 'apply' of undefined -


I'm getting an error on the title

See screenshot on screen

Error There is not always there, sometimes I refresh and there is no mistake.

I have already put all the code inside the $ (document) .ready (function () {} In the case of the bus something was not ready with DOM.

Base.js: 2453 - & gt; $ ('# SetList_Close, .fb_close') .g ('click', function () {$ .fancybox.close (); return back ;});

Any ideas what's going on? There is an error on Chrome I tested other browsers.

Edit: From googleapis.com Using jquery 1.7.2

Any help is really appreciated Thanks!

what is $ fancybox ? I do not see it

Did you mean to use the $ .fn.fancybox version?

  $ ('.multiple elements'). Fancybox ({href: this.href, overlay opacity 0.2, centerOnScroll: true, scrolling: false, hideOnOverlayClick: false});   

This object whose fault is allocated to the facebox, in jquery Wrapped is not a DOM element.

Comments