Search
 
SCRIPT & CODE EXAMPLE
 

HTML

date range picker select date and several weeks

<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/latest/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />

<div class="row">
    <input id="daterangepicker" type="text" />
    <select>
          <option value="1">Mo</option>
          <option value="2">Tu</option>
          <option value="3">We</option>
          <option value="4">Th</option>
          <option value="5">Fr</option>
          <option value="6">Sa</option>
          <option value="0">Su</option>
      </select>
</div>

<script>
$(document).ready(function () {
  $('#daterangepicker').daterangepicker({
    parentEl: '.row',
    isInvalidDate: function(date) {
      return parseInt($(this.container).parent().find('select').val()) !== new Date(date).getDay();
    }
  });
});
</script>
Comment

PREVIOUS NEXT
Code Example
Html :: how to remove box from form in html 
Html :: full height div inside td 
Html :: background image html mdn 
Html :: bootstrap form input select 
Html :: alpine hide element after set time 
Html :: marquee tag html 
Html :: svelte pass arguments to function 
Html :: HTML how to create texts in body 
Html :: html table cell color based on value 
Html :: lazy load 
Html :: how to make auto focus textarea vuejs 
Html :: html a tag 
Html :: remove padding in pre and code 
Html :: etiqueta negrita html 
Html :: jumbotron code without using jumbotron 
Html :: html default arrow remove 
Html :: table bootstrap 
Html :: typo3 fluid format html 
Html :: html footer 
Html :: html autoplay loop many videos 
Html :: bootstrap div inline cards 
Html :: style html 
Html :: tailwind css range slider 
Html :: html acronym 
Html :: ean 13 barcode in javascript tutorial 
Html :: HTML <sup 
Html :: get html element selenium c sharp 
Html :: documentformat.openxml bold text 
Html :: twig currency symbol 
Html :: pdf to html python 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =