title: How to update Jquery Datepicker with a variable?
body: <p>I have a form with Jquery Datepicker and i can save the date in the database.</p>
  
  <p>But when i reload the form to update the datas, i would like to have Jquery Datepicker showing the date previoulsy recorded in the database.</p>
  
  <p>I can load it with php. I just need to update the datepicker.</p>
  
  <p>In the documentation, i see :</p>
  
  <blockquote>
    <p>beforeShowType: Function( Element input, Object inst )
    Default: null
    A function that takes an input field and current datepicker instance and returns an options object >to update the datepicker with. It is called just before the datepicker is displayed.</p>
  </blockquote>
  
  <p>I think it can be the solution.
  Could someone give me an example ?</p>