javascript - jquery datepicker onclose event not firing -


i have added jquery 1.11 in footer jquery ui 1.11. added ui css @ header. datepicker events not working

$('.datepicker_default').datepicker({         dateformat: 'dd/mm/yy',         onclose: function (datetext, inst) {             alert('working');             //$(this).datepicker('option', 'dateformat', 'dd-mm-yy');         }     }); 

html

 <input type="text" class="form-control datepicker_default" placeholder="dd/mm/yyyy" name="datepicker"> 

here head section , footer https://gist.github.com/anonymous/9a6ed80380612e5cfb82

i think conflic between bootstrap-datepicker , jquery-ui-datepicker

<script type="text/javascript" src="<?php echo base_url('assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js'); ?>"></script> 

bootstrap-datepicker , jquery-ui-datepicker have same

$( "#div" ).datepicker();

http://www.eyecon.ro/bootstrap-datepicker/


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -