It would in its current form but you could restrict it to a particular range easily enough. Probably also want to tag on a isnumeric(target.value) to make sure the final output is a number as well.