This paper concerns with the existence of multiple solutions for a class of elliptic problems with discontinuous nonlinearity. By using dual variational methods, properties of the Nehari manifolds and Ekeland's variational principle, we show how the ‘shape’ of the graph of the function A affects the number of nontrivial solutions.