JQueryFnNamed.js

(function($) { // An anonymous function with one parameter named $ // Put your plugin code here }(jQuery)); // Invoke the function with the jQuery object as its argument
It is almost trivially easy to write your own jQuery extensions. The trick is to know that jQuery.fn is the prototype object for all jQuery objects. If you add a function to this object, that function becomes a jQuery method

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.