I'm using the Twitter Bootstrap datepicker and have run into a little issue.

What I want to do is, when the user selects a date, to submit the form and search my db for that date. I'm having a difficult time getting the datapicker to return the date.

Code HTML4Strict:
<form action="call_list.php" method="get" id="change-date">
    <div class="input-append datepicker" id="dp3" data-date="2013-02-26" data-date-format="yyyy-mm-dd">
        <input size="16" type="text" name="date" id="date" value="">
        <span class="add-on" rel="tooltip" title="choose date"><i class="icon-calendar"></i></span>
    </div>
</form>
</div>
 
 
<script>
    $(document).ready(function(){
        $('#dp3').on('changeDate', function(ev) {
            var date = $('#date').val();
            alert(date);
            $('#change-date').submit();
        });
    });
</script>