Error with date filter

0

I'm using the daterangepicker plugin in an input for the person to choose a period between TWO dates. But the code I've developed is not filtering the dates in the table correctly, does anyone know where the error would be?

Followthecode:

functiondtProto(){vardtProto,protoVal,array,data,filter;dtProto=document.getElementById("dtProto");
    protoVal = dtProto.value;
    array = protoVal.split('-');
    data = array[0] || array[1];
    filter = data;
    filtros(filter[0], 1);
} 

Follow the Html:

  <label for="dtProto">Data do Protocolo</label>
  <div class="input-group">
        <input type="text" class="form-control" name="dtProto" id="dtProto">
        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
  </div>
    
asked by anonymous 31.10.2017 / 17:14

0 answers