Thanks to both of you. It worked. I used the following script.
$(document).ready(function() {
$("#bill_datepaid_datepicker_description").focus(function() {
$("#bill_datepaid").next().data("DateTimePicker").disable();
$("#bill_datepaid").next().data("DateTimePicker").enable();
$("#bill_datepaid").next().data("DateTimePicker").show();
//$('#bill_datepaid_datepicker_description').attr('readonly', true);
});
});
When I had readonly true it worked only on first time focus on the input field. I was not able to launch the calendar on refocussing the input field again. There was no error in the console. Not sure why. Any thoughts ?
Thanks
R89