How to implement multiple date selection in jQuery date picker
Spread the love
Select Multiple Dates in jQuery Date Picker
 Tutorials </title>
<meta charst="utf-8">
<script type="text/javascript" src=""></script>

<!-- Isolated Version of Bootstrap, not needed if your site already uses Bootstrap -->
<link rel="stylesheet" href="" />

<!-- Bootstrap Date-Picker Plugin -->
<script type="text/javascript" src=""></script>
<link rel="stylesheet" href=""/>

<script type="text/javascript">

      var date_input=$('input[name="myrosterdate"]'); //our date input has the name "myrosterdate"
 var container=$('.bootstrap-iso form').length>0 ? $('.bootstrap-iso form').parent() : "body";
      var options={
      format: 'yyyy-mm-dd',
        container: container,
        todayHighlight: true,
        autoclose: false,
<div class="bootstrap-iso">
 <div class="container-fluid">
  <div class="row">
   <div class="col-md-6 col-sm-6 col-xs-12">

    <!-- Form code begins -->
    <form method="post">
      <div class="form-group"> <!-- Date input -->
        <label class="control-label" for="date">Date</label>
        <input class="form-control" id="myrosterdate" name="myrosterdate" placeholder="MM/DD/YYY" type="text"/>
      <div class="form-group"> <!-- Submit button -->
        <button class="btn btn-primary " name="submit" type="submit">Submit</button>
     <!-- Form code ends --> 



Facebook Comments Box

Leave a Reply