0

Please tell me the difference between the two above. How they are different from each other?

azam
  • 205
  • 4
  • 20

1 Answers1

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