title: jQuery - Bootstrap Datepicker onChange issue
body: <p>I am trying change link when a date is selected but whenever I select a date, I get
  <code>?day=</code> Here's my code:</p>
  
  <p>Markup:</p>
  
  <p><code>&lt;i class="icon-calendar"&gt;&lt;/i&gt;</code></p>
  
  <p>It only works when I use input
  <code>&lt;input type="text" class="datepicker"&gt;</code></p>
  
  <p>Javascript:</p>
  
  <pre><code>        $(document).ready(function(){
              $(".datepicker").datepicker({
                  format: "yyyy-mm-dd",
                  endDate: "-2d"
              })
  
              .on('changeDate', function(ev){
                  var dateData = $('.datepicker').val();
                  window.location.href = "?day=" + dateData ;
              });
          });
  </code></pre>
  
  <p>Expected results: <code>?day=2013-11-01</code></p>
  
  <p>Thanks</p>