Ten javascript functions

Last November, Dustin Diaz listed his personal ten best custom javascript functions for use in web development. Expectedly, the well–used toggle() is there, along getElementByClass() and the notable triplets getCookie(), setCookie(), deleteCookie(). Most of these functions are quite small and straightforward, except for cssQuery, and they surely deserve a place in everyone’s “scripts.js” or “common.js”.

After being dugg and making it to the frontpage, he looks back at his now famous weblog entry, and additionally lists alternative ways of writing toggle(), just for fun!