I'm trying to build a sudoku game for a uni project and I've hit a snag with HTML input feilds.

<input class='span-2' type='number' min='0' max='9' />
I need to create an input feild that takes a set of numbers btween 0 and 9. Only numbers and only thoes ones. The problem I have is that the text feild is created, but I can write stuff in them and go higher than 9. Any ideas?

Also I got this from using this...