Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Update boostrap date to next and prevoius dates

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #165955
    gowda24
    Participant

    I am using http://www.malot.fr/bootstrap-datetimepicker for my application.

    Below is the html code.

    <div class="input-group date form_datetime pull-left" data-date-format="dd-mm-yyyy" style="padding:0;width:48%;"  >
                        <input class="form-control" type="text" value="" >                    
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    </div>

    Javascript code:

    $('.form_datetime').datetimepicker({       
            weekStart: 1,
           
            autoclose: true,
            todayHighlight: true,
            startView: 2,
            minView:2,
            forceParse: 0,
            showMeridian: 1,
            maxView: 2,   
            todayBtn:0
    
        });

    I am having next and prevoius buttons next to calendar to update date to next and previous dates.

    Not able to update date to next and previous dates on click of the buttons.

    #165960
    Atelierbram
    Participant

    Can you please post a link to your not-working example, or maybe a codepen?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.