In Praise of jQuery

I finally got around to jumping into javascript, specifically jQuery. It’s an awesome framework and a valuable part of the toolbox. Now I haven’t really found anything I couldn’t do server-side in php but there are certainly a bunch of things that are just easier using client-side, especially styling (which I hate). Using jQuery has improved my html coding, especially the use of optional attributes, which jQuery exploits quite nicely. There’s more to css life than just styles and ids.

When I first started with jQuery, all I saw was simple hide/shows and effects. It really didn’t take long to figure out how to use AJAX which not only handles form submissions but it lets me take a chunk of output and use it all over my static site. Change it once and it’s updated all over.

There are a lot of plugins around for jQuery to handle a lot of routine tasks like form validation and form submission. While I started out using plugins, I’ve eventually figured out it’s just as easy to code a couple of lines and have a customized solution that you can understand and manipulate.

Javascript and jQuery have a learning curve like most everything else but it’s worthwhile to give it a try.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s