I'm not able to get the following script working. It's a bootstrap-datepicker
I'm using this js : www_dot_eyecon_dot_ro/bootstrap-datepicker
In my view I'm loading it like this :
Yii::app()->clientScript->registerCoreScript('jquery');
Yii::app()->clientScript->registerCoreScript('jquery.ui');
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/helpers/datepicker/js/bootstrap-datepicker.js');
Yii::app()->clientScript->registerCssFile(Yii::app()->baseUrl.'/helpers/datepicker/css/datepicker.css');
I have also the following sections on my view :
<script type="text/javascript">
$('#dp3').datepicker({
format: 'mm-dd-yyyy'
});
</script>
<div class="input-append date" id="dp3" data-date="12-02-2012" data-date-format="dd-mm-yyyy">
<input class="span2" size="16" type="text" value="12-02-2012">
<span class="add-on"><i class="icon-th"></i></span>
</div>
I can't get the popup/modal to choose the date.
Can anyone help me with this?
Thank you for your help

Help












