L
laredotornado
Hello, Assuming I have the functions, "isNumber" and "isEmpty", how
would I write the HTML INPUT type="text" element such that a person
cannot exit the element unless they have typed in a valid number (as
defined by the function isNumber) or left the field empty (as defined
by isEmpty)? Thus, if they have typed in "aaa" and then pressed "Tab"
to go the next element, they'd get a warning message, and be returned
to the old element?
Ideally, this solution would work for both the latest versions of
Firefox and IE.
Thanks, - Dave
would I write the HTML INPUT type="text" element such that a person
cannot exit the element unless they have typed in a valid number (as
defined by the function isNumber) or left the field empty (as defined
by isEmpty)? Thus, if they have typed in "aaa" and then pressed "Tab"
to go the next element, they'd get a warning message, and be returned
to the old element?
Ideally, this solution would work for both the latest versions of
Firefox and IE.
Thanks, - Dave