full calendar get a date in an input immediately click it to the day

1
$(document).ready(function(event, jsEvent, view) {
   $('#DivPrincipal').load('calendario_reservaciones.php',function() {
     $( '#calendar' ).css( 'display', 'block' );
     $('#calendario').fullCalendar({
     weekends: true,
     dayClick: function() {
     $("#mtitulo").html(event.title);
     $("#modal_reservacion").modal();

  },

  eventClick:  function(event, jsEvent, view) {
    $("#mtitulo").html(event.title); 
    console.log(event.start._i);
    console.log(jsEvent);
    console.log(view);
    $("#mfecha_ini").val(event.start._i); 
    $("#model_reservacion_Editar").modal();



  },

  header:{
    left:   ' today ', 
    center: 'title Cancha1',
    right:  ' month,agendaWeek,agendaDay prev,next'
  },
  lang: 'es',
  footer: {
    right: ' month,agendaWeek,agendaDay prev,next'
  },
  customButtons: {
    Cancha1: {
      text: 'Cancha1',
      click: function() {
        alert('clicked the custom button!');
      }
    },



  },


  firstDay:0,
  eventLimit : 2,
            // weekNumbers: true,
            // content Height: 600
             // aspectRatio: 1
             eventSources: [

          // your event source
          {
              url: '../controladores/reservaciones.php ', // use the 'url' property
              color: '#0a48b5',    // an option!
              textColor: 'white',
              editable: true,
              eventlimit:true,
              eventStartEditable : true,
              eventlimit: true,
                  // an option!
                }

                ],
                defaultTimedEventDuration:"01:00:00",
                selectable:true
              });

This is my js I have no idea how to call that date

<div class = "form-group row">
<label for = "hora_final" class = "col-sm-2 control-label"> Fecha de Reservacion </label>
<div class = "col-sm-10" >
<input id="fecha_reser" type="text" class="form-control" placeholder="Fecha Reservacion" name="fecha_reser" >

This is a part of my modal window I want that date to be printed in #date_reser

    
asked by David Ricardo Pavon Elvir 27.03.2018 в 03:08
source

0 answers