Load date data from a datatimepicker into a form to perform an update

0

Update the data date (which is a datatimepicker) of a form that must load the value stored in the database to change it and update but not load the saved data

< script >
  function obtener_datos(id) {
    var received = $("#received" + id).val();
    $("#mod_received").val(received);
  }
$(document).ready(function() {
  $.datetimepicker.setLocale('es');
  $('#mod_adddatetimepicker').datetimepicker({
    autoclose: true,
    todayBtn: true,
    startDate: "NOW()",
    minuteStep: 10
  });
}); <
/script>
<div class="form-group">
  <label class="control-label col-md-3 col-sm-3 col-xs-12">Fecha y Hora Recibido <span class="required">*</span>
                        </label>
  <div class="col-md-9 col-sm-9 col-xs-12">
    <input type="text" name="mod_received" value="" id="mod_adddatetimepicker" class="form-control col-md-7 col-xs-12" required placeholder="Fecha y Hora Recibido">
  </div>
</div>

    
asked by Julián Cordoba 15.06.2018 в 21:37
source

0 answers