jQuery: The Write Less, Do More JavaScript Library

Blog » jQuery Birthday: 1.1, New Site, New Docs

Posted January 14th, 2007 by John Resig

Great news, everyone! Today is jQuery’s 1 Year “Birthday”! (I released it 1 year ago, today, at BarCamp New York City) In celebration, we’ve got a bunch of stuff for you to enjoy.

1) jQuery 1.1

This is a great release - tons of bug fixes, huge speed improvements, and a big simplification of the outstanding API. It is highly recommend that you upgrade to get all the benefits of this release.

Download Now:

Upgrade Guide:

Please read through these guides before upgrading from 1.0.4 to 1.1 - a number of API changes have been made, and these guides detail how to work through them, and how to use the new jQuery 1.0 Compatibility Plugin to keep 1.0-style functionality in 1.1.

New Features:

  • By all of our counts, jQuery 1.1’s selectors are 10x-20x faster than those in jQuery 1.0.4. This should provide a noticable difference in your jQuery applications.
  • Common selectors like div#id, div .class, td:nth-child(1), and div > div are all significantly faster. It’s a complete world of difference. Try them out and you’ll see.
  • You can now pass in a function as a value for an attribute or a css property. The function is executed and its return value is set as the value for the property. For example:
    // 1.0 Code
    $("a").each(function(){
        $(this).attr("href", "/item/" + this.id);
    }).show();
    
    // 1.1 Code
    $("a").attr("href", function(){ return "/item/" + this.id; }).show();
  • You can now unbind an event handler from within itself. This allows you to have event handlers that are only bound for a specific number of executions, for example:
    $("button").click(function(e){
        // Unbind the event handler if a specific form is hidden
        if ( $("#submitForm").is(":hidden") ) {
            $(this).unbind( e );
        }
    });
  • Easily bind an event that will only occur once (this replaces the old .oneclick() functionality):
    // Show a thank you message for a form submission, but only once
    $("form").one("submit",function(){
        $("#thankyou").show();
    });
  • You can now set the text value of an element (this is different from .html(), where in .text() all HTML is displayed as text).
    $("pre").text("<b>Hello</b>, how are you?");
    
    // Result:
    <pre>&lt;b&gt;Hello&lt;/b&gt;, how are you?</pre>
  • You can now build your own filters, using a custom function. (This was in 1.0, but it wasn’t documented very well.)
    // Find all divs whose parent isn't hidden
    $("div").filter(function(){
      return $(this).parent(":hidden").length > 0;
    });
  • You can now pass a comma-separated list of selectors to the following filter functions:
    filter, find, not, siblings, parents, children, next, prev. This allows you to do some very cool stuff:

    // Find all radio buttons, or checkboxes, in a form
    $("form input").filter(":radio, :checkbox");
    
    // Find the next element that's a span, or a div
    $(this).next("span, div");

2) Refreshed Web Site Design

jQuery Site Screenshot
The design of the jQuery web site has finally be given a much-needed facelift. This was planned out by the fantastic jQuery Design Team and implemented by Nate Cavanaugh. The design team has a full redesign/restructuring planned, but we wanted something that would help us get from our current design to the complete overhaul. Hope you enjoy it - and be sure to thank Nate, Bradley, or Skye for their job well done!

3) Overhauled Documentation

A big point that we’ve been working with, lately, was to really pull together and categorize the jQuery Documentation, Tutorials, and API into one centralized location. The result of this effort is the new:
http://docs.jquery.com/
All jQuery documentation can be found in this one, central, location - making it easier for you to find what you need and get your work done faster. We hope you enjoy this new structuring, please let us know if you have any suggestions for what we can add to make it better.

4) A Secret…

We’ve been holding this one back a while, but we’re finally ready to let it go… There’s a jQuery Book in the works! An excited publisher has stepped up, and the authors are already a quarter of the way complete. There’s still some details in the works, and we’re going to tell all once its getting nearer to completion, but right now it’s looking like we’re going to have a late-Spring/early-Summer release of the first jQuery book!

Blank Book

I hope you enjoy everything - a lot of time and effort has really gone into making this release great. Be sure to thank everyone on the jQuery Team, they’ve put a lot of time and effort into making this release come out really good.

I’ll be doing a “State of the Query” post tomorrow, to talk about where jQuery has come during this past year, and the evangelism team will be doing a couple blog posts about what you can do with the new jQuery 1.1.

Thank you, everyone, for making this a fantastic first year for jQuery.


85 Responses to “jQuery Birthday: 1.1, New Site, New Docs”

  1. Steven A Bristol Says:

    Congratulations to the whole team! As a user and lover of jQuery I am very grateful for all the hard work you guys have put in. Thanks so much!

  2. Karl Swedberg Says:

    Congrats, John! Thanks for this fantastic library. Thanks also to all of the other developers who helped make this 1.1 release happen.

  3. huncent Says:

    Congratulations!

  4. Joel Birch Says:

    Thanks so much to the jQuery team for their amazing work and also to the entire community for all the support given to each other throughout the last year. You are all so loveable! ;)
    Oh, and… OMG a book! Awesome.

  5. Clodelio Delfino Says:

    To John et al..

    Congratulations…Job well done indeed!, Cheers c”,)

  6. Learning jQuery » jQuery 1.1 Released! Says:

    […] It’s jQuery’s first birthday, and John Resig and the development team are celebrating in style with a brand new release of jQuery! […]

  7. Ralph Whitbeck Says:

    I was doing some jQuery work tonight and the new documentation is like a breathe of fresh air… nicely done.

  8. DongDongFace Says:

    Very Cool!!!!!!!!!!
    I am a jQuery super Fans!!!!
    It is useful for my design of webcode!

    Thanks jQuery Design Team !!!! Your are great !

  9. xiongyu Says:

    Congratulations from a China Programmer! Thanks for the great project.

  10. seventoes Says:

    very nice job john! i couldnt live without jquery!

    also, the engrish in the post above is awesome!

  11. Jake Says:

    Happy Birthday!

    1.1 rocks!

  12. Rey Bango Says:

    Happy Birthday jQuery and congrats to John & the team for the tremendous effort in getting v1.1 launched. Awesome job guys!

  13. Steve Says:

    Happy Birthday! I love 1.1, I’ve been using svn for some time and it is great. The new website and doc are awesome also. Kudos to all involved.

  14. Glen Lipka Says:

    Looks awesome. Congratulations!
    I hope it captures the imagination of the world the way it has mine.

    One little crit: The main site looks kinda messed up on my IE7 WinXP SP2.

  15. ziggy Says:

    Website background images all disappear onload in ff2 for me. Actually loads at first but says it is still getting something from quantserv and when the page finishes loading that and google analytics, the background suddenly all disappears!

  16. ziggy Says:

    Ooops, sorry, I just realized I had an old greasemonkey script to change the old site white so it was readable. Fine now after removed.

    Still, whatever it is fetching from quantserve is taking ages to load, maybe 10 seconds extra..

  17. aaron Says:

    Congratulations!

    i love it.

  18. jQuery 1.1 Selector Speeds at Aaron Heimlich - Web Developer Says:

    […] jQuery 1.1 was released today (happy birthday jQuery!!) and with it came, among many other things, massive (we’re talking 10x-20x, according to John) speed increases in the selection engine. So, as I promised, here is the selector speed information I discussed in my previous post updated for jQuery 1.1: […]

  19. Mehdi Kabab Says:

    Congratulations !

    Thanks jQuery Team ^_^

  20. Jason Says:

    Congrats on the 1.1 release! I’m having a little trouble navigating the new site. Links like dev/recent/ and dev/bugs are no longer on the footer menu.

  21. » Свершилось! Подробно Says:

    […] Итак, jQuery выпустила версию 1.1. Новая версия. Новый сайт, новая документация. Ещё не разбирался, но обязательно поковыряю и поделюсь впечатлением. Правда ребята обещали 14 числа выдать эту версию, до 23 по Лондону я проверял сайт, а сейчас вот вижу - таки да, успели Обещают что будет быстрее, и значительно быстрее… […]

  22. Interaction Design Blog » Blog Archive » DomQuery is extremely fast Says:

    […] To make it even more interesting, jQuery has released a new version of the library where api-size and speed has been the main focuses, but it still doesnt match DomQuerys speed. DomQuery made me start looking into Yahoo UI. Its a good competition benefitting all of us working with interface development. I am sure the jQuery community will make the best out of this competition. There is already a debate between John Resig and Jack Slocum about the results and how to interpret them. […]

  23. Konstantin Says:

    Congratulations! I really like to use jQuery and I want to thank you all for the great work you are doing.

  24. Stoyan Says:

    Congratilations, you’ve done a lot for one year - build the excellent jQuery and build the excellent community around it. This library made my life easier.

  25. Geert Baven Says:

    Congratulation to John and the dev team. The new design looks very professional.

  26. jQuery 1.1 - Jowra | Webdesign - Photo - Artwork Says:

    […] John Resig hat die beliebte kleine JavaScript-Library wieder überarbeitet und stellt zum heutigen Geburtstag von jQuery die Version 1.1 bereit. Neben den obligatorischen Bugfixes, wurde die Geschwindigkeit in der Abarbeitung teilweise drastisch erhöht. Vergleichen kann man diesen Geschwindigkeitszuwachs beim jQuery Speed-Test. […]

  27. Remy Says:

    Congratulations - and thanks to all for jQuery.

  28. Mourner Says:

    Digg this!

  29. Koka Says:

    Could someone translate the book into German, as soon as it is published, please? ;)

  30. Dean Edwards Says:

    Doesn’t jQuery have some high profile users? Technorati for instance? Why not put some testimonials on your front page to help beef up your image?

    Oh and happy birthday. :-)

  31. NM-blog » Code Igniter and jQuery Autocomplete Says:

    […] jQuery is celebrating, the new 1.1 release and the 1 year birthday. Go and visit their new website and see what great adjustments have been made to jQuery. […]

  32. JQuery cumple su primer año » ingeniuz :: desarrollo web útil Says:

    […] JQuery celebra su primer cumpleaños y lo hace liberando una nueva versión: la 1.1. Las novedades más interesantes: […]

  33. frando Says:

    Great Work everyone!
    Thanks a lot for this phantastic piece of code!

    By the way, today, yes, right today, Drupal 5.0 was released, and it uses jQuery as its JavaScript library.
    AFAIK, Drupal is now the first bigger CMS that uses jQuery as the offical core js library!

    And, surprisingly, today is also Drupal’s 6th birthday!

    Seem to have a lot in common, the two ;)

  34. jQuery 1.1 final « felipediesel.net Says:

    […] Foi lançada ontem a versão 1.1 da jQuery. Além das novidades que eu já havia citado no artigo sobre a versão 1.1a, o site foi redesenhado, a documentação reorganizada, e um livro sobre a jQuery está sendo escrito. […]

  35. ReyBango Says:

    @Dean: Its coming. :o )

  36. jQuery 1.1, nueva versión y nuevo sitio web - aNieto2K Says:

    […] presentación de la documentación permitiendo la busqueda en ella de forma más clara y cómoda. # « El iphone de 30Kg. […]

  37. Kevin Says:

    Viva la JQUERY! Good work guys! The book sounds great and I’ll make sure to include the 1.1 release announcement in this weeks Juxtaviews roundup. Rock n roll!

  38. Andrew Says:

    Congratulations!

    Thanks to everyone for developing this fantastic tool.

  39. F-LOG-GE » Blog Archive » jquery hat Geburtstag Says:

    […] Das Javascript-Framework jquery hatte gestern Geburtstag. Zum ersten (!) Geburtstag schenken sich die Entwickler selber eine überarbeitete, verschlankte neue Version die die Nummer “1.1″ trägt. Doch nicht nur die neue Version schenken sie sich selber, auch die beiden Dokus [1,2] wurden erneuert. Mal schauen, wann das neue “Visual jquery Magazin” herauskommt. Es sollte ja häufig erscheinen, tat dies aber nur einmal. Ein eigenes Buch ist allerdings für den Frühsommer angekündigt. Ich bin sehr gespannt. […]

  40. Dominik Hahn Says:

    Nice one! Thank you very much!

    I got some questions though.. I ran the speed test, here are four results:

    body -> old: 0.2ms -> new: 0ms
    #speech5 -> old: 0.2ms -> new: 0ms
    div #speech5 -> old: 10ms -> new: 45.8ms
    #scene1 #speech1 -> old: 0.4ms -> new: 3ms

    How comes the first two results show only a small difference and why do the last two results are so much slower?!

  41. Christopher Jordan Says:

    Way to go guys! This is truely awesome! How many other JS/Ajax libraries out there can boast about getting a book published all about their library? W00T!

    Sweet job *everyone*!

  42. John Resig Says:

    @Dominik: The problem is that contextual ID-searching is an expensive operation. Pre-1.1, all #foo searches were just doing document.getElementById() (which is really fast, but quite wrong). In order to make it right, you have to traverse through all descendant elements to find the element that has a specific ID. It’s slower, but at least right. (And this only effects selectors like “div #foo” or “#foo #bar”)

  43. Angel Colberg » Blog Archive » jQuery 1.1 API Says:

    […] jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/ […]

  44. Ajaxian » jQuery 1.1 is reborn on its first birthday Says:

    […] John Resig and team have released jQuery 1.1 which includes a speed upgrade, an updated API, a new homepage, and new documentation including a book in the works. […]

  45. wesley Says:

    Congrats,

    What’s next for jquery? What new things can we look forward to?

    I’d like to see a jquery-lite.. Let’s face it, claiming that the library is small is no longer true, (uncompressed counts). I want a compressed version under 10kb :)

  46. Doug Martin Says:

    Very cool. I’ve been following jQuery since you did a session at BarCampBoston. I’ll be using it in an upcoming client site. Thanks for all the good work.

  47. Daniel Rust Says:

    great! cant wait to implement this

  48. Motorcycle Guy Says:

    Wow, I hope the book goes well, and thanks for jQuery!

  49. Daniel Rust Says:

    Okay, i just plugged in the new release with the compatibility plugin to try it out

    And the new selectors are so fast, this is great

  50. sehmaschine Says:

    thanks for jquery 1.1.
    the redesign of the website is crap, sorry. what a waste of time.

  51. ReyBango Says:

    @sehmaschine: Hmm. I’m sure you’re seeing some things that aren’t great from your perspective so what I’d like to ask is if you could email the list with suggestions on how to improve the site. Please keep in mind that this whole project is based on volunteer contributions so if you’d like to improve the site, we’re always willing to accept the help. Thanks.

  52. ReyBango Says:

    @sehmaschine: Here’s the link to the web design team’s list:

    http://jquery.com/mailman/listinfo/web_jquery.com

    We look forward to your suggestions and contributions. Thanks again for your help.

  53. Matt Oakes Says:

    Well done guys! Everyone who help program jQuery really deserves a massive thank you. You’ve done an amazing job at creating something simple and beutiful that is free for anyone to use.

    The design team also deserve massive kdos for redesigning the site. It was really letting the side down before :D

    Well done everyone, I’ll continute to give back to you by creating some plugins to help add to the community!

    THANK YOU!!!

  54. azreal Says:

    great work!
    I use jquery everyday now.
    Thank you

  55. willy henostroza b. Says:

    Congratulations!

  56. IM2 | OQP » Autres mises à jour : wordpress et jquery Says:

    […] Autre nouveauté, jQuery 1.1 nous arrive, avec un nouveau site et nouvelle documentation. […]

  57. » jQuery 1.1 Makes a Big Splash - 15 Days Of jQuery Says:

    […] I take the day off and hit the golf course only to come back and find out that John Resig and gang have launched jQuery 1.1 with a bunch of new improvements, reworked site design for the official jQuery site, and some really sharp jQuery plugins. […]

  58. ryder Says:

    jQuery Team,thanks!!
    i expect the first book of JQuery

  59. newuni Says:

    Posted on meneame.net, spanish digg clone : http://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/

    Nice work.

  60. newuni Says:

    Ups, missed hiperlink :: http://meneame.net/story/jquery-1.1-publicado

    Sorry :)

  61. sravkum Says:

    Congratulations!! to the whole team,

    you have done a great job and thanks for sharing the same

    good luck a head…..

  62. NM-blog » CSS tips Says:

    […] Voor iedereen die nog regelmatig zit te stoeien met CSS, ik kwam deze link tegen die veel bruikbare informatie bevat. Ik wist het grotendeels al maar veelal door trial-and-error. Misschien vertaal ik het wel een keer. Ook voor de Nederlanders een aankondiging dat jQuery jarig is. Om het te vieren is er een nieuwe website, een nieuwe versie (1.1) en het bericht dat er een boek gaat komen. Ook een nieuwe visuele documentatie van jQuery is uit. […]

  63. Happy birthday JQuery! | oriolmorell.cat Says:

    […] JQuery fa un any de vida i per a celebrar-ho nova versió! […]

  64. t8d blog » Blog Archive » JQuery 1.1 Says:

    […] Die komplete Liste der Neuerungen gibt es hier. Die beliebte Dokumentation Visual jQuery ist ebenfalls bereits auf dem neuesten Stand. […]

  65. Dan Atkinson » Blog Archive » jQuery 1.1 for WordPress? Says:

    […] I’ve been giving some serious thought to updating my jQuery for WordPress plugin to 1.1 (to co-incide with the recently released v1.1 of jQuery), but I’m not so sure. […]

  66. George Smith Says:

    New site is nearly really nice. Lose the reflection on jQuery, esp. as it interferes with the tagline. Shinyness for shinyness sake. Other than that, a good job.

  67. Daniel Gona Says:

    Thank you!

  68. flash devs Says:

    Nice to hear about the book, I look forward to reading it.

  69. Raffael Luthiger Says:

    The new site is really good. Except that no background color is set. (I get here gray, but looking at the picture it should be white)

  70. andrewskinner[dot]name » Blog Archive » links for 2007-01-17 Says:

    […] jQuery: » jQuery Birthday: 1.1, New Site, New Docs A shiny new version of jQuery has just been released. According to the blog post there have been some massive performance improvements and a simplification of the API. Lovely! (tags: Development javascript jquery Ajax library framework webdev) […]

  71. Giel Berkers Says:

    The new site looks great! And I’m looking forward to using jQuery 1.1 and the book.

    Congratulations John and thank you (and the development team) for all the time and effort for making jQuery such a nice library to work with.

  72. Blogging Web 2.0 Web Design | Technology News | Social Networking | Color Tagging | Ajax | CSS | SEO | Tyic » jQuery Birthday: 1.1, New Site, New Docs Says:

    […] http://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/ […]

  73. Vinny Carpenter’s blog » Daily del.icio.us for Jan 21, 2007 Says:

    […] jQuery: » jQuery Birthday: 1.1, New Site, New Docs Today is jQuery’s 1 Year “Birthday”! (I released it 1 year ago, today, at BarCamp New York City) In celebration, we’ve got a bunch of stuff for you to enjoy. (tags: javascript jquery ajax library framework webdev development) […]

  74. nilesh Says:

    made some cheat sheets for jQuery 1.1.x

    HTML printable format! 3 layout formats to pick from..ohh….ahh..,enjoy,

    http://www.n-bp.com/jquery_cheat_sheet/v11_catalog/

    http://www.n-bp.com/jquery_cheat_sheet/v11_catalog_extra/

    http://www.n-bp.com/jquery_cheat_sheet/v11_atoz/

  75. Domain Name Diary » Blog Archive » News Wire: The Secret Origin of Ajax Says:

    […] jQuery Birthday: 1.1, New Site, New Docs The popular jQuery JavaScript library has reached its 1.1 release, which comes with a slew of improvements both to the library itself and the documentation that goes with it. The 10x-20x speed improvement on selectors makes this an essential upgrade. (tags: javascript software) […]

  76. SitePoint Blogs » News Wire: The Secret Origin of Ajax Says:

    […] jQuery Birthday: 1.1, New Site, New Docs The popular jQuery JavaScript library has reached its 1.1 release, which comes with a slew of improvements both to the library itself and the documentation that goes with it. The 10x-20x speed improvement on selectors makes this an essential upgrade. (tags: javascript software) […]

  77. Olivier G. Says:

    About the ‘Refreshed Web Site Design’, you forgoth to set body background color to #fff, it’s the default color of the browser (gray for me at this moment).

  78. devcw Says:

    This is great. Congratulations!!! I am a jQuery fan and am thrilled at the new release. And the book sounds like it will be on my list, hope it is released soon.

  79. xocea » Programming News: January 2007 Says:

    […] jQuery 1.1 Released […]

  80. JQuery sigue avanzando - Blog de obokaman Says:

    […] Hace unas semanas, anunciaban en su blog la publicación de la nueva versión 1.1, con unas mejoras de rendimiento espectaculares y algunas nuevas funcionalidades. Este mismo lunes posteaban acerca del acuerdo por el cual JQuery va a poder integrarse con la librería de interfaz EXT.  Y hoy  mismo leo en su blog que JQuery va a pasar a ser una de las primeras librerías en adherirse al estándar OpenAjax, en la definición del cual están participando, entre otros, Mozilla, IBM, Adobe, Opera… […]

  81. Viking KARWUR Says:

    Happy Belated Birthday… Congratulations for all the dev team… Success…

  82. Learning jQuery » jQuery 1.1.2 Released Says:

    […] The jQuery project team has just released version 1.1.2 of the JavaScript library. This is a bug-fix version, recommended for everyone. If you are still using a version prior to 1.1, you should be mindful of the API changes (see the jQuery 1.1 announcement for details). If you’re already using version 1.1 or later, you’re in good shape. […]

  83. jQuery 1.1 is reborn on its first birthday Says:

    […] John Resig and team have released jQuery 1.1 which includes a speed upgrade, an updated API, a new homepage, and new documentation including a book in the works. […]

  84. jQuery: » jQuery Book Coming Soon Says:

    […] For those of you who have been following the jQuery blog the past couple months, you may have noticed John Resig’s mention of a secret: “There’s a jQuery book in the works!” Well, I am thrilled to be able to leak a little more information about that secret. […]

  85. Learning jQuery » Learning jQuery, the Book Says:

    […] For those of you who have been following the jQuery blog the past couple months, you may have noticed John Resig’s mention of a secret: “There’s a jQuery book in the works!” Well, I am thrilled to be able to leak a little more information about that secret. […]