Open alexdpts opened 6 years ago
UPD. when i move part of code:
$(elementId).inputmask({ oncomplete: function () { cfValidator[index] = 1; $(elementId).removeClass("errorInput"); // Remove lighting - it's work }, onincomplete: function () { cfValidator[index] = 0; $(elementId).addClass("errorInput"); // Lighting incomplete field - not work }
upper than $("#send").click(function(){
problem is solved
Oncomplete checks does not work the first time after page load. After page load, i complete form fields and try to check it, but oncomplete function is not works, and all fields is marks as incomplete. I input space and delete it in each field, after this oncomplete check is works Windows 8.1 pro 64bit Google Chrome 67.0.3396.99 64bit Inputmask Version: 4.0.1-beta.23
Using via data-inputmask attributes
masks:
Form check code: `$(document).ready(function(){
$("#acceptRules").click(function(){
});`
A little video in attach oncomplete.zip