📅  最后修改于: 2022-03-11 15:01:27.199000             🧑  作者: Mango
You actually need to set the onkeyup option to a function that accepts the element being validated as a parameter, so try changing:
onkeyup: true,
to
onkeyup: function(element) {$(element).valid()}