validatorJS -Nummer
const validationRule = 'required|numeric';
florinrelea
const validationRule = 'required|numeric';
if (value.match(/^[0-9]*$/)){
//code here
}