title: Disable datepicker without disabling input field
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6107465/remove-datepicker-function-dynamically">Remove Datepicker Function dynamically</a>  </p>
  </blockquote>
  
  
  
  <p>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.</p>
  
  <pre><code>$( "#datepicker" ).datepicker("disable");
  </code></pre>
  
  <p>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</p>
  
  <p><a href="http://jsfiddle.net/Xppj6/1/" rel="nofollow noreferrer">http://jsfiddle.net/Xppj6/1/</a></p>