Saturday, March 12, 2016

Bootstrap datepicker


<link href="~/Content/bootstrap_datepicker_css/datepicker.css" rel="stylesheet" />
    <link href="~/Content/bootstrap_datepicker_css/datepicker3.css" rel="stylesheet" />



 $('#BILLDT').datepicker({
                format: "dd-M-yyyy",
                autoclose: true,
                todayHighlight: true,
                showOnFocus: true,
            }).on('show', function (e) {
                if (e.date) {
                    $(this).data('stickyDate', e.date);
                }
                else {
                    $(this).data('stickyDate', null);

                }
            }).on('hide', function () {
                //document.getElementById("BILLYY").focus();
            });


<script src="~/Scripts/bootstrap-datepicker.js"></script>

No comments:

Post a Comment