> I can see the benefit of this being that you only include the methods you > need and there is no bloat.
That's precisely why. Here's examples of everything that you mentioned: disable: $("input").attr("disabled","disabled"); enable: $("input").attr("disabled",""); findFirstElement: $("form :input:first") focusFirstElement: $("form :input:first").focus(); getElements: $("form :input") getInputs: $("form :input") request: (via Form plugin) $("form").ajaxSubmit() reset: $("form").reset() serialize: $("form :input").serialize() serializeElements: $("form :input").serialize() Obviously there are philosophical differences at play - but the fact all of these things exist (or are easily accessed via a plugin) just shows how powerful and extensible jQuery is. Of course, I'm quite biased in this matter, but I'm really proud of the library. > But I just recently read that you can get a compressed prototype library down > to 26k - so isn't that almost the same as jQuery? Just to clarify: These custom compressed versions of Prototype are not official, nor are they supported. The Prototype team just says to use them at your own risk. All compressed builds of jQuery are built and supported by the jQuery team (of which, jQuery is around 20k -- and yet still includes animations, meaning that you don't need the overhead of Scriptaculous either, which is another 15k). --John On 8/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, > > I am trying to decide on a JS framework for my website and I am > looking at jQuery and prototype. While, I understand there are many > philisophical differences between the implementations, it looks like > to me one of the big differences are all of the new functions > available in prototype. > > What I am curious about, is does jQuery have support for these things > or in jQuery are you basically expected to use the easy access to DOM > objects to create the functionality you need as you go. > > For example, in prototype, adds these methods to the form element > (http://www.prototypejs.org/api/form > ): > > disable enable findFirstElement focusFirstElement getElements > getInputs request reset serialize serializeElements > > Does jQuery have anything similar? In jQuery would you just write > these yourself? I can see the benefit of this being that you only > include the methods you need and there is no bloat. But I just > recently read that you can get a compressed prototype library down to > 26k - so isn't that almost the same as jQuery? > > I guess I am just looking for a reason to use jQuery vs. Prototype and > an argument about why I don't need all those (useful?) methods > available in prototype? Anyone? > >