jQuery: enabling/disabling datepicker

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

    $("#from").datepicker('disable'); should work, but you can also try this:

    $( "#from" ).datepicker( "option", "disabled", true );
    

提交回复
热议问题