Advantages of jQuery:
- Fast
- Well documented
- Easy to use
- Chaining
- Easy-to-use Ajax
- Nice event handlers
- CSS selectors
- Small (only 30 KB)
- Nice little built-in effects.
- Plugins
- OOP (and other paradigms).
- Widget infrastructure.
- Modules done right with all necessary goodies:
- Lazy loading of modules dynamically.
- Asynchronous loading of modules if desired.
- Simple integration with CDNs (content delivery networks) for heavy-duty web applications.
- Sheer breadth of available modules in DojoX including graphics, charting, grids, and so on.
- Attention to details in widgets:
- Support for i18n (including LTR and RTL languages),
- Support for l10n (including standard date, currency, number formatting),
- Provisions for people with special needs (automatic high-contrast mode, keyboard-only support, and so on).
Personally, I think Dojo's lack of good documentation/reference code, lack of 'marketing', and relative complexity keep it from becoming popular. Documentation is a whole lot harder to use than jQuery’s because, at first glance, it’s quite a bit more scattered and substantially more API-based than task-based. It's much easier to get started with library like jQuery because of all these factors. However, once you get over that initial steep learning curve, Dojo is good!
References: