Number validation! only quick question

hi,

i have created an input text box that only lets you input 2 numbers,

and i have set it to only allow numbers “1-9”

but i want it to only allow numbers 1-10

and at the moment it lets you input 1 and so on up to 99.

theirs got to be an easy way to fix this

thanks guys.