JQuery - hour spinner -
i need use jquery spinner hours template be: 00:00:00:00
currently spinner set numbers.
how can it?
the easiest solution have spinner each number. set a demo here.
html
<div class="demo"> <p> <label for="amount">set time (hh:mm:ss:fr):</label> <input class="time hour" name="hour" value="0" /> <input class="time min" name="min" value="0" /> <input class="time sec" name="sec" value="0" /> <input class="time frames" name="frames" value="0" /> </p> </div>
script
$(function() { $(".time").spinner({ min: 0, max: 59, step: 1, start: 0, precision: 0, width: '2em' }); $(".hour").spinner('option','max', 23); $(".frames").spinner('option', 'max', 100); });
Comments
Post a Comment