Laravel 4 with bootstrap-datepicker

不问归期 提交于 2019-12-06 01:38:41
ryan0319

Twitter bootstrap uses

 data-datepicker="datepicker"

to show the date picker. Laravel will allow you to use this is the same array as the class and placeholder.

<p>{{ Form::text('date_of_birth', '', array('class' => 'form-control','placeholder' => 'a tua data de nascimento','data-datepicker' => 'datepicker')) }}</p>

The following has worked for me. Difference between @Marco's and my answer is data-provide instead of data-datepicker.

{{ Form::text('startingDate', null, array('class' => 'form-control input-sm','placeholder' => 'Starting Date','data-provide' => 'datepicker')) }}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!