vrijdag 8 februari 2008

jQuery worth trying

This is a very short post, but I wanted to tell you about jQuery. I tried it earlier this week in a new CakePHP 1.2 project. Just included jquery.js in my layout and used the code below to have a toggle effect. With Mootools I always needed much more code to achieve this effect.

Try this example.

Let me know what you think of this!

2 opmerkingen:

  1. Why use jquery and inline js? For me part of the beauty of jquery is the ease with which it allows you to separate js out of your source.

    See http://www.quarkruby.com/2007/11/6/why-i-moved-from-prototype-to-jquery for a longer explanation of the same thing

    BeantwoordenVerwijderen
  2. Thanks AD7six, will definitely give it a try!

    BeantwoordenVerwijderen