getElementsByClassName Deluxe Edition

Published 00:58 on 30 April, 2006

Stuart has written a tastey new version of the illusive getElementsByClassName function. His version allows multiple classes, limiting to a specific tag and (thanks to yours truly) specification of AND/OR logic on the comparison. Nice.

Check it out in Stuart’s blog entry, “getElementsByClassName Deluxe Edition…”

The script has been tested in most all modern browsers.