javascript - Jdewit Timepicker show widget on text and icon click -
i want widget show when click textbox. how can achieve ? using jdewit timepicker
here code
html
<div class="input-append bootstrap-timepicker"> <input id="timepicker1" type="text" class="input-small/> <span class="add-on"><i class="icon-time"></i></span> </div>
jquery:
$('#timepicker1').timepicker({ minutestep: 15 });
i manage archive using .trigger
here code
html
<div class="input-append bootstrap-timepicker"> <input id="timepicker1" type="text" class="input-small/> <span class="add-on"><i class="icon-time"></i></span> </div>
jquery:
$('#timepicker1').timepicker({ minutestep: 5 }); $('#timepicker1').on('click', function(e) { $(this).next().trigger('click'); }) ;
Comments
Post a Comment