jQuery: enabling/disabling datepicker

前端 未结 18 1124
青春惊慌失措
青春惊慌失措 2020-12-03 06:38

In my php-file, I want to use the jQuery Datepicker.

When my file loads, I create the Datepicker disabled.

Then, when a special field in my php-file (it is a

18条回答
  •  孤街浪徒
    2020-12-03 06:58

    Try something like this it will help you

    $("#from").click(function () {
               $('#from').attr('readonly', true);
         });
    

    Thanks

提交回复
热议问题