input numbers only
I'm trying to build a sudoku game for a uni project and I've hit a snag with HTML input feilds.
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?
<input class='span-2' type='number' min='0' max='9' />
Also I got this from using this...
The code you posted is OK, so it's something else. Are you using an HTML 5 <!DOCTYPE>?
Hi there KarneeKarnay,
...appear appear to be rather thin on the ground, at present, with "Chrome" leading the field.
Of course, it is still only classified as "Working Draft".
Last edited by coothead; 04-13-2013 at 10:05 AM.
Reason: added source link
Thanks guys. Don't know what was happening, but quiting the compiler and restarting it seemed to fix it.
Sounds like the problem was caching. It amazes me how many times I get fooled by the browser not reading the updated page, because it has an old copy in cache.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)