We show the stability results and Galerkin-type approximations of solutions for a family of Dirichlet problems with nonlinearity satisfying some local growth conditions. 2000 Mathematics subject classification: primary 35A15; secondary 35B35, 65N30. Keywords and phrases: p(x)-Laplacian, duality, variational method, stability of solutions, Galerkin-type approximations.