Get updated date value on outside container click in bootstrap date picker inline (Combodate )

313 Views Asked by At

I am using date picker of bootstrap x-editable. Its working fine but I want to customized some of it's functionality. Suppose when we select any date and click on Tick mark then we can show the combined date inside a tag. So I want to get the same functionality onblur also (outside of the container but date should be change).

1

There are 1 best solutions below

2
On

I think you can use this code into your input text as like that

<input size="16" type="text" value="2012-06-15 14:45" readonly class="form_datetime">

<script type="text/javascript">
    $(".form_datetime").datetimepicker({format: 'yyyy-mm-dd hh:ii'});
</script>