Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 如何链接两个日期类型的输入字段?_Forms_Laravel_Date_Input - Fatal编程技术网

Forms 如何链接两个日期类型的输入字段?

Forms 如何链接两个日期类型的输入字段?,forms,laravel,date,input,Forms,Laravel,Date,Input,我有两个输入字段: 和 如果您使用的是引导数据采集器,则可以将签出的开始日期指定给签入的日期。差不多 $('.checkin').datepicker({ startDate: 'd' //this means today }); $('.checkout').datepicker({ startDate: $('.checkin').val(); //Not sure of this but you get the idea }); 或者,只需使用daterage选项,即可

我有两个输入字段:


如果您使用的是引导数据采集器,则可以将
签出
的开始日期指定给
签入
的日期。差不多

$('.checkin').datepicker({
    startDate: 'd' //this means today
});

$('.checkout').datepicker({
    startDate: $('.checkin').val(); //Not sure of this but you get the idea
});
或者,只需使用daterage选项,即可实现所有功能:

<div class="input-group input-daterange">
    <input type="text" class="form-control" value="2012-04-05">
    <div class="input-group-addon">to</div>
    <input type="text" class="form-control" value="2012-04-19">
</div>
详情如下:


这将为您提供现成的所需信息。

如果您使用的是引导数据采集器,则可以将
签出的开始日期指定为
签入的日期。差不多

$('.checkin').datepicker({
    startDate: 'd' //this means today
});

$('.checkout').datepicker({
    startDate: $('.checkin').val(); //Not sure of this but you get the idea
});
或者,只需使用daterage选项,即可实现所有功能:

<div class="input-group input-daterange">
    <input type="text" class="form-control" value="2012-04-05">
    <div class="input-group-addon">to</div>
    <input type="text" class="form-control" value="2012-04-19">
</div>
详情如下:

这将为您提供您所需要的一切