Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/06/2015, 15:42
BlackJccl1
 
Fecha de Ingreso: abril-2015
Mensajes: 304
Antigüedad: 9 años
Puntos: 2
Capturar Fecha de un input

Hola todos como estan tengo el siguiente problema no se si alguien me puede ayudar tengo un input el cual tiene como dato fechas es decir se muestra asi 2015-06-18 y cuando se hacen click se muestra me desglosa mi datapicker lo que deseo es que mi datapicker se habilite desde la fecha que se muestra para lo caul tengo esta funcion
Código Javascript:
Ver original
  1. $(".fecharcontx").datepicker({
  2.         onSelect: function(){
  3.         inicio = $(this).datepicker("getDate");
  4.         final = $(this).datepicker("getDate");
  5.         final.setDate(final.getDate()+365);
  6.           if ($(".fechaprocx").hasClass("hasDatepicker")) {
  7.                 $(".fechaprocx").val("");
  8.                 $(".fechaprocx").datepicker("destroy");
  9.           };
  10.         $(".fechaprocx").datepicker({
  11.           minDate: inicio,
  12.           maxDate: final,
  13.         });
  14.     },
  15. });