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
Try something like this it will help you
$("#from").click(function () { $('#from').attr('readonly', true); });
Thanks