Constrain textboxes to take specific value range

Can I constrain textbox to get only values between 1 and 60?