Thanks, John. And thanks for jQuery. Beautiful piece of work.
kj On 3/4/07, John Resig <[EMAIL PROTECTED]> wrote:
Hi Kynn - Documentation on $.extend can be found here: http://docs.jquery.com/JavaScript and information on using $.fn.extend can be found here: http://docs.jquery.com/Plugins/Authoring In jQuery $.fn.extend is used in plugin authoring, adding new methods to jQuery. The relationship in jQuery is like this: jQuery and $ are identical. jQuery.fn and $.fn are identical. jQuery.fn and jQuery.prototype are identical. jQuery.extend and jQuery.fn.extend are nearly identical, but when you pass in a single object of properties, jQuery.extend will extend the jQuery object with properties whereas jQuery.fn.extend will extend the jQuery.fn object (and thus add new methods to the jQuery core). All of that being said, if you're just getting started with jQuery, you're probably not going to have to worry about any of this. --John On 3/4/07, Kynn Jones <[EMAIL PROTECTED]> wrote: > Hi. I'm just learning about jQuery and finding my way around its > documentation. > > I have not been able to find any documentation on $.fn. > > In fact in some of the rest of the documentation (e.g. the example code for > $.extend given at http://visualjquery.com/1.1.1.html, $.fn > (or rather jQuery.fn ) without explanation. > > Actually, the examples given there raise many questions in my mind, for > example: what's the difference between $.fn and jQuery.fn? And, what's the > difference between calling jQuery.fn.extend and jQuery.extend? > > Are the answers to these questions in the documentation? If so, please > point me to them. > > Any help would be much appreciated. > > TIA! > > kj > > > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/