Please tell me the difference between the two above. How they are different from each other?
Asked
Active
Viewed 611 times
0
-
http://stackoverflow.com/questions/4083351/what-does-jquery-fn-mean – Jonathan S. Sep 18 '12 at 19:27
-
Removed my answer since this is a duplicate. – Mark Sep 18 '12 at 19:28
-
I read this before... why you removed your answer. and when the fancybox is called from outside which one is called – azam Sep 18 '12 at 19:31
-
@user1575229, try reading the accepted answer on the linked duplicate. It explains it very nicely. – Paul Tomblin Sep 18 '12 at 20:03
1 Answers
1
$.fn is the prototype used to jQuery objects created from $("..."). SO by calling .fn you are extending the defaults.
$ is the jQuery factory and namespace.
For Fancybox 2.0, the ".fn" is dropped.

mmcglynn
- 7,668
- 16
- 52
- 76
-
in fancybox there are two methods $.fn.fancybox and $.fancybox. I can guess about the first one but what does the second one say now? please elaborate this don't get it. – azam Sep 18 '12 at 21:30