5 months ago

Laravel Blade and Javascript

Posted 5 months ago by evripidesk

Hello I have the below blade with datepicker but is not working the datepicker (no error in concole)


    <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"></script>  
    <meta name="csrf-token" content="{{ csrf_token() }}">


    <div class="container">

      @if ($errors->any())
      <div class="alert alert-danger">
              @foreach ($errors->all() as $error)
                  <li>{{ $error }}</li>
      </div><br />

      <form method="post" action="{{action('[email protected]eJobTitle')}}">

        <input name="date" class="date form-control" type="text">


<script type="text/javascript">


     format: 'mm-dd-yyyy'



if I dont use the endsection then is working but is breaking the template

Please sign in or create an account to participate in this conversation.