jQuery: enabling/disabling datepicker

前端 未结 18 1035
青春惊慌失措
青春惊慌失措 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:56

    Also set the field to disabled when you disable the datePicker e.g

    $("input").prop('disabled', true);
    

    To stop the image being clickable you could unbind the click event on that

    $('img#').unbind('click');
    

提交回复
热议问题