See the Pen select() method by ccforward (@ccforward) on CodePen.