I want to enter only digits in a textbox with the following condition
- maximum 3 digits
- maximum from 0 to 250..so 251 should not be accepted.
I have written the following code till now..how to take the other conditions too
this.value.match(/[^0-9]/g)