We have some input
elements on the page:
<input type="text" class="lovely-input" name="number" value="" />
User types a number he wants to see.
How to watch for this input value. with some options? They are:
- If user types a digit more than 100, change the value of input (on fly, without page refresh) to 100.
- If he types digit less than 1, turn value to 1.