filter
Change class name on click in jQuery
jQuery 1.11.0, HTML, CSS, JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
jQuery 1.8.3, HTML, CSS, JavaScript
Starting point for creating JSFiddles with React.
Try selecting both squares, then de-select them again by clicking elsewhere on the canvas