I came across a jQuery plug-in the other day to sort tables, and it works great and is exceptionally simple to implement (and as anyone who’s flicked through this blog knows, I like the simple things in life… Don’t need any more gray hairs popping up, you know!).
The plug-in is called tablesorter (found at tablesorter.com), by Christian Bach.
Continue reading ‘Easy table sorting with jQuery’
A little while ago I posted a quick jQuery plug-in that allows you to easily indicate an external link. Then I posted an updated version that had a few optimizations. Well, it turns out that I had missed out a rather important portion of the code when I posted it up. D’oh! So here’s the full and working version.
Continue reading ‘Highlight external links with jQuery’
Somethings it’s the simple things in life that make you really happy. For me yesterday, that was thanks to jQuery. Have you ever wanted to have a check box that, when the user checks it it also checks a lot of other checkboxes? Yeah, of course you have! I wanted to do that yesterday. Now, it’s not the first time I’ve had to do that kind of functionality, but it always came with a bunch of javascript that seemed over the top for what was wanted. With jQuery it just took a line or two of code!
$(document).ready(function() {
$('#selectall').click(function() {
$(":checkbox", $('#checkboxlist')).attr('checked', $(this).is(':checked'));
});
});
And with that, on and off go the other checkboxes.
Marvelous!
Published on
January 1, 2009 in
General.
Hope everyone has a wonderful new year!
Recent Comments