JQuery中form验证出错,可以采用以下方式来查看具体input的出错信息
If(!$(‘form’).valid())
{
$($(‘form’).validate().errorList).each(function (index, item) {
Console.log($($(item).attr(‘element)).attr(‘name’) + ‘ ‘ + $($(item).attr(‘element)).attr(‘message’));
});
}
JQuery中form验证出错,可以采用以下方式来查看具体input的出错信息
If(!$(‘form’).valid())
{
$($(‘form’).validate().errorList).each(function (index, item) {
Console.log($($(item).attr(‘element)).attr(‘name’) + ‘ ‘ + $($(item).attr(‘element)).attr(‘message’));
});
}

2023-03-10
0万阅读

2023-02-27
0万阅读

2023-02-23
6万阅读

2023-02-22
6万阅读

2023-02-12
8万阅读

2023-02-12
3万阅读

2023-01-19
8万阅读

2023-01-17
4万阅读

2023-01-17
4万阅读

2023-01-17
2万阅读

2023-03-10
0万阅读

2023-02-27
0万阅读

2023-02-23
6万阅读

2023-02-22
6万阅读

2023-02-12
8万阅读

2023-02-12
3万阅读

2023-01-19
8万阅读

2023-01-17
4万阅读

2023-01-17
4万阅读

2023-01-17
2万阅读