Intermediate

Book Excerpt – Table Manipulation

Packt Publishing has just posted an excerpt of our new book Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques on their site. The excerpt covers table sorting, pagination, row highlighting/striping, and basic tooltips. It also gives a hat tip to Roger Johansson of 456 Berea Street and Christian Bach of jQuery […]
Read the rest of this entry »

Clearing Form Data

A question I often hear is, "How do I clear a form?" Initially the answer seems very straightforward - a one-liner in jQuery: $('form :input').val(""); But upon closer examination we find that this is a bad way to solve the problem. When someone says they want to "clear a form" what they really mean is […]
Read the rest of this entry »

What is this?

One of the most confusing aspects of jQuery is how it assigns scope during callbacks. It must be confusing because the topic generates a lot of questions on the mailing list. It's too bad, really, because jQuery sets the scope in order to simplify your code, not make it more confusing. So here are some […]
Read the rest of this entry »

Automatic Page Contents

It's been so long since I last posted a tutorial here that I'm afraid everyone might have forgotten about the place. For the past few months, there has been a little "Page Contents" menu at the top-right corner of some of the pages on this site — actually, any page that has more than one […]
Read the rest of this entry »

Half-Star Rating Plugin

There was a request recently on the jQuery discussion list for an enhancement to Ritesh Agrawal's Simple Star Rating System to allow for 1/2 star ratings. So I took it upon myself to add the feature. Update I'm not supporting my version of this plugin at this time. I meant it more as a proof […]
Read the rest of this entry »

Accordion Madness

A few weeks ago I wrote about two ways we can achieve the "accordion menu" effect, and I promised to describe a third option. Well, this is it, Option 3. But first, here is a list of my other show-hide-toggle entries, as well as Jörn Zaefferer's accordion menu plug-in: More Showing, More Hiding Slicker Show […]
Read the rest of this entry »

Responsive Menu
Add more content here...