how to set a max value ta input type number in java code example Example: number input html <input id="number" type="number" value="42">