html - Input number in text box display the image -
i have 3000 images in folder. named 1000.jpg 1001.jpg , on. 1000 3000. make html file , have text box , when input number (ie, 1000) show me file 1000.jpg. when click file hide this.
i need manage warehouse , have pattern images on mobile.
thanks
maybe can you--
<input type="number" id="my-input"> <a href="#">see image</a> <script> $("#b").click(function() { var s=$("#my-input").val() $("#b").attr("href", s+".jpeg"); } }); </script>
so, takes value of "#my-input" , appends value of href attribute filename.
Comments
Post a Comment