OnClick Close DateTime Picker

259 views Asked by At

I have implemented a close button on my datetime picker by making changes in my bootstrap-datetimepicker.min.js. Here is the code.

<tr><td><button class="label label-danger" onclick="this.blur()">Close</button></td><tr>

When I click close, I want this datetime picker window to be closed. I've tried several thing but none are working. What should I do?

enter image description here

1

There are 1 answers

2
indra444 On BEST ANSWER

Not sure if I understand the problem. But something like this can work.

<button class="label label-danger" onclick="javascript:$(document).find(" .bootstrap-datetimepicker-widget").hide();">Close</button>