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 User1658004-Oct-2014

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

here is the html:

 <divstyle="width: 40%; margin: 100pxauto;">
    <divstyle="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">
        <inputtype="text"class="form-control"readonly="true"/>
        <spanclass="input-group-addon"><spanclass="glyphicon glyphicon-calendar"></span></span>
    </div>
    <inputtype="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