There is a text field, it is allowed to enter only numbers.
<script type="text/javascript"> window.onload = function(){ document.getElementById('input').onkeyup = function(){ this.value = this.value.replace(/[^\d]/g,''); }; }; </script> <input type="text" id="input" /> Required: after entering the number below, the image should appear by clicking on which the select field will appear with the choices for the specified number. Example: number 1 is entered, an image appears below, clicked, the select field opened with options: text1, text2 ... For figure 2, similarly, except for the options. How to implement?