title: Cakephp input date value no getting in jquery
body: <p>I have a input field of type date </p>
  
  <pre><code>    &lt;?php echo $this-&gt;Form-&gt;create('Order',
  array('action'=&gt;'fixedFormAllOrders','type'=&gt;'post'));?&gt;
           &lt;table&gt;
           &lt;tr&gt;
         &lt;td &gt;&lt;?php  echo $this-&gt;Form-&gt;input('search',
            arra    ('label'=&gt;'Search By','type'=&gt;'select','id'=&gt;'search',
   'empty'=&gt;'--select--','options' =&gt;array     ('new'=&gt;'New Orders',
    'pending'=&gt;'Pending             orders','past'=&gt;'Delivered/Past Orders',
  'viewall'=&gt;'View All Orders'))); ?&gt;&lt;/td&gt;
       &lt;td style="width:60px;" &gt;
     &lt;?php echo $this-&gt;Form-&gt;input('order_date',
        array(                                                                             'type'  =&gt; 'date', 'label' =&gt;
      'Search By Date',                                                                         'id'=&gt;'date' )); echo $this-&gt;Form-&gt;Submit        ('Search',array('id'=&gt;'submit_date'));?&gt;&lt;/td&gt;
  
        and when I try to access the value from jquery, it is showing Undefined.
  
           $order_date= $('#date').val();
           alert($order_date);
  </code></pre>
  
  <p>so how to get value of date field in jquery. if anybody know please help me</p>