0

Html

<input type="text" id="daterange" name="daterange" />

js

 $(function() {
$('input[name="daterange"]').daterangepicker({
minDate:new Date(),
singleDatePicker: true,
locale: {
format: 'MM/YYYY'
}
});
});

How to hide the date selection area in daterangepicker ? Above code display the month/year in the textbox

https://jsfiddle.net/gomal/tm053uun/

gomal
  • 13
  • 1
  • 5

1 Answers1

0

Could add this to the CSS as a quick fix

.table-condensed thead tr:nth-child(2) {
  display: none;
}
.table-condensed tbody {
  display: none;
}

This will hide the days and weeks from the popup. Additional logic will probably be needed to prevent keyboard inputs from modifying those values.

kriddy800
  • 144
  • 7
  • i have multiple daterange picker in same page, i need to apply specific date range picker – gomal Nov 23 '16 at 13:28