Mitul
Mitul

Reputation: 11

pickDate: false is not working in datetimepicker bootsrap?

Why is pickDate: false not working in datetimepicker bootstrap?

HTML

<input type="text" class="form-control input-small evstime" name="evstime" readonly="readonly" />  

JS

$(function() {
    $('.evstime').datetimepicker({
      pickDate: false 
    });
});     

Upvotes: 1

Views: 3982

Answers (1)

Th4t Guy
Th4t Guy

Reputation: 1492

Are you using this http://tarruda.github.io/bootstrap-datetimepicker/#disables_date_picker?

HTML

<div class="input-append datetimepicker">
    <input type="text" data-format="hh:mm:ss" class="evstime" name="evstime"/>
    <span class="add-on">
        <i data-time-icon="icon-time"></i>
    </span>
</div>  

JS

$(function() {
    $('.datetimepicker').datetimepicker({
      pickDate: false 
    });
});   

Check out this js fiddle http://jsfiddle.net/zxhgnq9b/

Upvotes: 1

Related Questions