Hi – fairly new, so hope this isn’t a silly question. I’m using a clientside javascript function to validate user input. The function is triggered by an onkeyup which passes the input data in a table (input type = “text”).
The function includes
validChars = /[1-9]/
if(inputNumber.value.match(validChars)) to determine a response.
This works fine except that the tab key which moves from cell to cell in the input table also triggers an invalid input. I’ve tried including t to allow tab through but this doesn’t work.
Second question (if I may) how do I allow arrow keys in HTML for user movement from cell to cell, as well as tab key?
Your help for a newbie much appreciated!