Home > Mobile >  How to Limit Year with Form Select Input Type?
How to Limit Year with Form Select Input Type?

Time:06-23

I want to limit the year in the Select Input Type to only show 5 years from now and the year before

<div >
     <select  style="height: 55px;">
             <option selected>Years</option>
             <option value="2018">2018</option>
             <option value="2019">2019</option>
             <option value="2020">2020</option>
             <option value="2021">2021</option>
             <option value="2022">2022</option>
      </select>
</div>

for example as above, but using dynamic code with PHP or javascript, please help me

  • Related