Hi,
I have a number of text boxes for the user to input either numbers, or letters. Sometimes, the entry must be numeric. So I was thinking of using an onblur thing to check whether the value of the input is numeric, and if not, show an alert box to the user.
I assume I would need to use getelementbyid. And on this page, there might be up to 30 similar input text fields, all of which need to be checked when the focus is lost. But obviously, they would have different ids, and I don't want to have to have 30 different javascript functions to check. Is there a way around this?
To summarise, as the user enters something into the text field, when they click somewhere else, I need to check that entry to see if it's numeric, and I need to do it for as many text fields as there are on the page.
I am not remotely a javascript expert.