forum

home / developersection / forums / how to change position left to right of bootstrap datepicker

How to change position left to right of bootstrap datepicker

Anonymous User 16857 04-Oct-2014

I'm using a datepicker from bootstrap and I cant handle changing the position from right to left.

here is the html:

 <div style="width: 40%; margin: 100px auto;">
    <div style="width: 100%;" class="input-group date form_date col-md-12" data-date="" data-date-format="dd MM yyyy" data-link-field="dtp_input2" data-link-format="yyyy-mm-dd">
        <input type="text" class="form-control" readonly="true" />
        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
    </div>
    <input type="hidden" id="dtp_input2" value="" />
</div>

Here is javascript code:

<script>
    $(function () {
        $('.form_date').datetimepicker({
            place: bottom-left
        });
    });
</script>

But it did not work


Updated on 04-Oct-2014

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By