Bootstrap 3 Datetimepicker

2

Srs.,

I have had difficulty understanding the documentation for the Bootstrap 3 Datepicker v4 . I could not figure out how to fire the event dp.show() for a specific element, $("#txtDataHora_01") for example.

I need help with this.

Thank you in advance for your attention

    
asked by anonymous 04.07.2015 / 08:53

2 answers

1

The show event is triggered as follows:

$("#txtDataHora_01").datepicker('show');
    
04.07.2015 / 09:51
0

Try doing the following:

$(function () {
    $("#txtDataHora_01").datetimepicker();

    $("#txtDataHora_01").on("dp.change",function (e) {
        //Seu evento aqui.
    });
});

In this way, I believe that every time your field changes, your event will be triggered.

    
02.09.2015 / 20:27