mercredi 7 février 2018

DatePicker no working in Laravel

I'm trying to use the package bootstrap-datetimepicker. I had already followed the installation tutorial. But I could accomplish to get it to work. I imported the files required into app\publicfolder as well.

My blade file

<html>

<head>

    <title>Laravel Bootstrap Datepicker</title>


    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- JS AND CSS -->
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <script type="text/javascript" src=""></script>
    <link href="" rel="stylesheet">
    <link href="" rel="stylesheet">
</head>

    <body>
        <!-- DATATIME PICKER CODE -->
        <img src="" alt="Mountain View">
        <div class="container">
            <div class="row">
                <div class='col-sm-6'>
                    <div class="form-group">
                        <div class='input-group date' id='datetimepicker5'>
                            <input type='text' class="form-control " />
                            <span class="input-group-addon">
                                <span class="glyphicon glyphicon-calendar"></span>
                            </span>
                        </div>
                    </div>
                </div>
                <script type="text/javascript">
                    $(function () {
                        $('#datetimepicker5').datetimepicker({
                            defaultDate: "11/1/2013",
                            disabledDates: [
                            moment("12/25/2013"),
                            new Date(2013, 11 - 1, 21),
                            "11/22/2013 00:53"
                            ]
                        });
                    });
                </script>
            </div>
        </div>
    </body>
    </html>

The resulte I'm getting is this, a import with a fail icon. And nothing showing up while clicking.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire