Using jQuery Date picker with a custom trigger button

后端 未结 6 1609
伪装坚强ぢ
伪装坚强ぢ 2021-02-20 08:37

How do I make the jQuery Datepicker open up by a user defined button?

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-20 09:27

    $("#checkin").datepicker({
      dateFormat: 'dd/mm/yy',
      minDate: '0',
      changeMonth: true,
      numberOfMonths: 1
     });
    .datedivmng{
        float: left;position: relative;
    }
    .datedivmng .datepicker{
        position: relative;width: 87%!important;
        cursor: pointer;
    }
    .datedivmng:after {
        /* symbol for "opening" panels */
        font-family: 'FontAwesome';
        content: "\f073";
        color: #329ac4;
        font-size: 16px;
        text-shadow: none;
        position: absolute;
        vertical-align: middle;
        pointer-events: none;
        float: right;
        top: 2px;
        right: 7px;
    }

提交回复
热议问题