📜  jquery validate on keyup - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:27.199000             🧑  作者: Mango

代码示例1
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()}