We obtain a second quantization of the elliptic Calogero-Sutherland (eCS) model by constructing a quantum field theory model of anyons on a circle and at a finite temperature. This yields a remarkable identity involving anyon correlation functions and providing an algorithm for solving of the eCS model. The eigenfunctions obtained define an elliptic generalization of the Jack polynomials.