atatanasov / gijgo

Gijgo - Free Javascript Controls
http://gijgo.com
MIT License
474 stars 186 forks source link

Problem with multiple Picker #393

Open NitinPrakash opened 6 years ago

NitinPrakash commented 6 years ago

Hi, There are two problems I come across

  1. There is no easy method to disable back date in Datepicker
  2. When initiasing multiple picker using similar statement as below all pickers' values change on close instead of the current one.

$('#start_time,#end_time, .pick-date').datepicker()

Thanks

AmanVishram commented 5 years ago

Hi @NitinPrakash

For the second issue you can use an each statement instead: $('#start_time,#end_time, .pick-date').each(function(){ $(this).datepicker(); });

/Aman

kimobot commented 5 years ago

The first problem can be resolved by setting a minDate: https://gijgo.com/datepicker/configuration/minDate