jemnotesversion 2 / featuring this entry or see all/search

Mar 28
The first javascript libraries I used were prototype and scriptaculous. However, I just started using jQuery, which is insanely great. The (css-like) selectors they use, for example, are so much fun: consider
$('li:visible:not(:has(img.checkmark.checked))').hide('slow')
This slowly hides and removes any visible list items that have no child elements that are images in the checkmark (tick for commonwealth readers) and checked (ticked) classes.
In other words, this slowly fades any checked off items that haven’t yet been hidden. So clean!