var options = {
rules: {
date: { required: true }
},
customPlacement: function(element, errorElement) {
document.querySelector(".error-element").appendChild(errorElement);
},
};
// defines FormValidator to validate the DatePicker
var formObject = new FormValidator("#form-element", options); |