daterangepicker bootstrapValidator not working -
i'm trying validate date field not working.
at first time validator work fine if field empty, when select date daterangepicker, error message don't desappear , form keeps disabled submit.
tanks support.
validator:
$('#frm1').bootstrapvalidator({ message: 'este valor no es valido', feedbackicons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' }, fields: { fechaexpedidentificacion: { validators: { notempty: { message: 'the date required' }, date: { format: 'dd/mm/yyyy', message: 'the date not valid' } } } } });
daterangepicker:
$(document).ready(function(e) { var datefechaexp = new date(); datefechaexp.setdate(datefechaexp.getdate()-10000); $('#fechaexpedidentificacion').daterangepicker({ singledatepicker: true, calender_style: "picker_2", format: 'dd/mm/yyyy', startdate: datefechaexp, showdropdowns: true, });
Comments
Post a Comment