I have a simple multi-select prototype set up here. When you select one or more items I update a counter and string (e.g. “3 items selected”) and reveal a “(clear)” link.
How could I alter this file so that a click on “clear”, sets everything back to some given, cleared, state?