Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript close calendar after select

$(document).ready(function () {
    $('#example1').datepicker({
        format: "dd/mm/yyyy",
        autoclose: true
    });

    //Alternativ way
    $('#example2').datepicker({
      format: "dd/mm/yyyy"
    }).on('change', function(){
        $('.datepicker').hide();
    });

});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #close #calendar #select
ADD COMMENT
Topic
Name
7+9 =