title: datepicker trigger event in yii
body: <p>My view code goes like this</p>
  
  <pre><code>&lt;div class="row col2"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'visited_date'); ?&gt;
      &lt;?php 
  
      $this-&gt;widget('zii.widgets.jui.CJuiDatePicker',array(
          'model' =&gt; $model,
          'attribute'=&gt;'visited_date',
          'options'=&gt;array(
              'showAnim'=&gt;'drop',//'slide','fold','slideDown','fadeIn','blind','bounce','clip','drop'
              'dateFormat' =&gt; 'yy-mm-dd',
              'showButtonPanel' =&gt; true,      
          ),
          'htmlOptions'=&gt;array('size'=&gt;30,'class'=&gt;'date',  //'value'=&gt; date("Y-m-d")
  
           ),
      ));
    ?&gt;
      &lt;?php echo $form-&gt;error($model,'visited_date'); ?&gt;
  &lt;/div&gt;
  
      &lt;div class="row col2"&gt;
      &lt;?php echo $form-&gt;labelEx($model,'next_visited_date'); ?&gt;
      &lt;?php 
      $this-&gt;widget('zii.widgets.jui.CJuiDatePicker',array(
          'model' =&gt; $model,
          'attribute'=&gt;'next_visited_date',
          'options'=&gt;array(
              'showAnim'=&gt;'drop',`enter code here`
              'dateFormat' =&gt; 'yy-mm-dd',
              'showButtonPanel' =&gt; true,
              ),
          'htmlOptions'=&gt;array(
      'style'=&gt;'height:20px; border-color: #448844;color:red; float:left;',
  ),
      ));
    ?&gt;
  &lt;?php echo $form-&gt;error($model,'next_visited_date'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am using yii 1 framework. I have two date pickers in my form i.e one to select visited-Date and another to select next-visitedDate. My next-visitedDate changes according to visited-Date i  select .How to do so?</p>
  
  <p>How to trigger on one date select to another datepicker? Please anyone help.</p>