Set the active element.