title: jQuerybUI datepicker() with dynamic knockout loop
body: <p>I have got this templated knockout-loop:</p>
  
  <pre><code>&lt;div id="accordion" data-bind="jqAccordion:{},template: {name: 'task-template',foreach: Tasks,afteradd: function(elem){$(elem).trigger('valueChanged');}}"&gt;.   &lt;/div&gt; 
  
  &lt;script type="text/html" id="task-template"&gt;
       &lt;div data-bind="attr: {'id': 'Task' + TaskId}" class="group"&gt;
            &lt;h3&gt;&lt;b&gt;&lt;input name="TaskName" data-bind="value: TaskName  /&gt;&lt;/b&gt;&lt;/h3&gt;
            &lt;p&gt;
               Due Date: &lt;input class="datepicker" data-bind="myDatepicker : {}, value: taskDueDate" /&gt;
            &lt;/p&gt;
       &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Where datepicker is a jQuery Ui datepicker function:</p>
  
  <pre><code>ko.bindinghandler.myDatepicker =  $(function() {
      init: function( element, valueAccessor) {
  
          $(element).datepicker({
             changeMonth: true,
             changeYear: true
          });
      }), 
      etc.
  }
  </code></pre>
  
  <p>why does this not work?</p>
  
  <p>Symptoms are: the calender is showing and the widget respond to my interactions but no date is returned to the input-field. Any clues?</p>
  
  <p>Thank you in advance!</p>