Reputation: 275
I use following code to display datepicker. But when i run the application on Firefox, I cant find the datepicker. I am using Laravel4.2. Is there any best way to display datepickers? Is there any CDNs availabele to do this?
<table class="table table-striped">
<thead>
<tr>
<th>
{{ Form::label('select','Select an event :') }}
<select class="form-control input" name="events" id="events" >
<option selected disabled value="00">Select</option>
<option value="1">Clicks</option>
<option value="2">Views</option>
<option value="3">Loads</option>
<option value="4">Opens</option>
</select>
</th>
<th>
{{ Form::label('s_date','From :') }}
<input type="date" class="form-control" required id="dp" name="start_date"/>
</th>
<th>
{{ Form::label('t_date','To :') }}
<input type="date" class="form-control" required id="dp" name="to_date"/>
</th>
<th>
<input type="button" value="View report" class="btn btn-primary" onclick="displayVals()">
</th>
</tr>
</thead>
</table>
<div id="performance">
</div>
Upvotes: 0
Views: 2417
Reputation: 653
See bootstrap-datepicker
on http://eternicode.github.io/bootstrap-datepicker/
Add markup:
<div id="sandbox-container">
<input type="text" type="text" class="form-control">
</div>
Add Script:
$('#sandbox-container input').datepicker({
});
Upvotes: 2