Over the last few years it seems like Prototype development has slowed down a lot, while jQuery is making huge headway. Every tutorial I see is using jQuery. So I FINALLY decided to buy a book and learn it. They are vastly different to say the least. My prototype code had an awful lot of onclick=”” kinda stuff inside the HTML, while jQuery let’s your code appear more transparent and natural. I love being able to pass my own variables using html attributes.
I went through a lot of WTF, why isn’t this working moments during my first attempts at coding using jQuery techniques. However, overall I love jQuery. Now my code is optimized, cleaner, and I feel as though I am not limited in what I want to do. If I can dream it, I can code it with jQuery. Not a small feat for someone like myself.
For example, with Prototype I simply didn’t know how to show a loading gif when an ajax command was in use. It sounds simple and a lot of you are probably thinking what an idiot. I turn to jQuery and my first attempt I find that it’s so simple to achieve. Not only that but I can easily manipulate form values, check their validity,and pass them along with no problem at all.
So for those of you who haven’t used a framework before, or are still using Prototype, give jQuery a try. You won’t be disappointed.