Sai

Sai

  • NA
  • 203
  • 30.1k

Bootstrap date range selection

Jan 5 2018 1:04 AM
Hi everybody,
 
I need your help. Kindely let me know how to set start date and end date range in bootstrap datepicker in jquery.
 
Requriement:
===========
StartDate : 05/Jan/2010
EndDate : 06/Jan/2010 to .........future date also able to select but not before startdate.
Once user select StartDate and immediately EndDate should starts after selected startdate. So before endate in datepicker dates disable not enable.
 
Jquery Code:
==========
$("#txtStartDate").datepicker({
format: 'dd/mm/yyyy',
autoclose: true,
todayHighlight: true
});
$("#txtEndDate").datepicker({
format: 'dd/mm/yyyy',
autoclose: true,
todayHighlight: true
);
 
Please help me

Answers (8)