0

I am looking for the name of the set of commands that start with '$.'. Example: $.extend() in jquery.

Thank you for your help. :)

Rainhider
  • 806
  • 1
  • 17
  • 31
  • It's a method in `$`. – Dave Newton May 22 '15 at 15:35
  • `$` are a variable just like everything else. But the `$` variable are generally used by some JavaScript libraries, like jQuery. – Dinei May 22 '15 at 15:35
  • Does this help? http://stackoverflow.com/questions/846585/can-someone-explain-the-dollar-sign-in-javascript – Christian4423 May 22 '15 at 15:36
  • $. is mainly used by the jQuery library. In fact, $. is an alias to the jQuery object. You can either do $.func() or jQuery.func() – ChainList May 22 '15 at 15:36
  • It is used as an annotation for jquery functions/variable, which is a javascript framework. – Akash Rajbanshi May 22 '15 at 15:36
  • 2
    `$` is jQuery's only function and there are some public utility functions you may use from it, such as `$.trim`, `$.merge`, `$.ajax` or as you say `$.fn` which is the 'namespace' for plugins. Selecting an element with `$('selector')` returns a jQuery Object where you can access your jQuery methods and plugins functions for doing stuff with DOM elements. You would not be adding methods directly on to `$` yourself. – Dominic May 22 '15 at 15:40
  • I use $('elementName') a lot, but it is the public utility functions I am looking to learn about... the '$.' notation, not the jquery selector of '$'. – Rainhider May 22 '15 at 15:52
  • I found the jquery tutes for it... https://api.jquery.com/category/utilities/ ... if Dominic wants to post his answer as the answer, i can give you credit. :) – Rainhider May 22 '15 at 15:56
  • this q is not a duplicate... '$' is different than '$.' in jquery. – Rainhider May 26 '15 at 15:05
  • 3
    @Rainhider: No, it’s not. `$` is a function and `$.x` is a property `x` on that function. It’s the same as any other variable name. jQuery isn’t magic. – Ry- May 26 '15 at 15:07

0 Answers0