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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -