Possible Duplicate:
Remove Datepicker Function dynamically
In my web application i am using the datepicker. I am using the same page for create and edit the details. While editing the page the date should not be editable. I am disabling the datepicker by using the following code.
$( "#datepicker" ).datepicker("disable");
But the above code also disables the input field also.(If the input field is disabled in edit mode the data is not posted to the PHP). I want to disable the datepicker without disabling the input field and i want to show the "ui-datepicker-trigger" icon. Can anyone help me out. Following is the link to JSFIDDLE