Open pencsi opened 5 years ago
But this is not the correct syntax :D pls help meee
this looks right to me library is having issues with jquery 3 hence if it doesnt trigger custom its because of that $('#Form').validator({ custom: { "invalidnumber": function (data) { var number = data.attr('data-invalidnumber'); console.log("here"); if (data.val() == number) { return number + " is not a valid choice"; } } } })