Check that variable is a number November 25, 2023 by Tarik The javascript function isNaN(variable) should do the trick. It returns true if the data is not a number.