javascript close calendar after select

Solutions on MaxInterview for javascript close calendar after select by the best coders in the world

showing results for - "javascript close calendar after select"
Dante
23 Jan 2016
1$(document).ready(function () {
2    $('#example1').datepicker({
3        format: "dd/mm/yyyy",
4        autoclose: true
5    });
6
7    //Alternativ way
8    $('#example2').datepicker({
9      format: "dd/mm/yyyy"
10    }).on('change', function(){
11        $('.datepicker').hide();
12    });
13
14});
15