JQuery UI DatePicker using 2 date fields trying to get date difference

后端 未结 3 1770
庸人自扰
庸人自扰 2021-01-03 12:03

I have 2 JQuery Date fields

  1. Arrival
  2. Departure

Arrival date must not be todays date - i got this sorted using minDate: 1 in the javascr

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 12:15

    I'm sure this example isn't perfect, but here's a working demo with most of what you require, using just jQuery and the jQuery UI Datepicker:

    
    
    
        
        Datepicker & Difference
        
        
        
        
    
    
    

    Play around with that and see if you can integrate something similar into your app/site.

提交回复
热议问题