Input type number should start again from min value with up arrow and max value with down arrow

Viewed 624

I have number input,

<input type="number" name="start" id="start" value="0" min="0" max="24" />

so, i want functionality like when i click up arrow till max value(24 here) reaches after that it should start again from 0 and same when reaches limit till min value(0 here) with down arrow, after that it should start with 24.

And also same should work with keyup and keydown arrow.

Any help would be appreciated!

1 Answers
Related