[Solved] How to check if an input box contains only numbers or commas?


/^(\d|,)+$/.test(input_val) will return true as long as input_val only contains digits and/or commas.

0

solved How to check if an input box contains only numbers or commas?