I need a JavaScript function that when called, will check to see make sure that the textbox contains only numbers OR it is ok if the textbox is totally blank. After the validation to make sure it is blank, or numeric, then the form needs to be submitted.
I have found several code snippets for this on the web, but I can't seem to get any of them to work. I've tried running loops on each character on the box, and i've tried isNAN and other things. ANY help would be appreciated.
Thank You
I have found several code snippets for this on the web, but I can't seem to get any of them to work. I've tried running loops on each character on the box, and i've tried isNAN and other things. ANY help would be appreciated.
Thank You