I'm making a sudoku game as part of my web development course, and one of the things I need help with is this.

function input_values() 
	var values = document.getElementsByClassName(three-col);
So I'm using a css framwork to build my layout. I was thinking, as the game grid uses only one class, could I put all times this class is called, into a var. Then cycle through that var to build my game. This shows no errors, but I'm relativly new to Js and I would apreicate someone telling me how to test if this is right.

The other thing I would like some help with is converting these to input text areas via Js and if anyone has any links to trutorials, or maybe an algorithm I could use to generate the puzzles.