简体   繁体   中英

How to display a datepicker on a page in laravel?

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> 

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({

});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM