With the help of jQuery UI Datepicker, make several calendars on the page in such a way that each can use its style



  • Like one. Htmlto make several independent calendars jQuery UI Datepickerso that everyone has their own class (to use their styles)?



  • It's easy to use the class and hang it. datepicker on him.

    $(function() {
      $( ".datepicker" ).datepicker({ dateFormat: "yyyy-mm-dd" });
    }); 
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css">
    

    <input type="text" name="MyDate1" class="datepicker">
    <input type="text" name="MyDate2" class="datepicker">




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2