隐藏的字段上的jQuery-Validation-Engine错误位置弹出窗口(jquery选项卡) [英] jQuery-Validation-Engine wrong position popup on field hidden (jquery tabs)

查看:215
本文介绍了隐藏的字段上的jQuery-Validation-Engine错误位置弹出窗口(jquery选项卡)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jQuery-Validation-Engine验证表单,但是我有问题.... 我在div中有一个表格,表格分为多个标签,并且我将validationEngine设置为:

I use jQuery-Validation-Engine for validate a form, but I've a problem .... I've a form in a div divided into tabs and I set the validationEngine like this:

$(".test").validationEngine({validateNonVisibleFields: true});

在提交时,在非活动....的活动选项卡中的两个字段上都可以正常工作,但是非活动选项卡中的字段的弹出错误未与相应的字段对齐.

On submit works fine both on fields in the active tab in the non-active .... but popup error of the fields in non-active tab is not aligned to the corresponding field.

_calculatePosition函数似乎忽略了要检查的隐藏字段的真实坐标...

The _calculatePosition function seems that ignore the real coordinates of the field-hidden to check...

有什么建议吗?

非常感谢

推荐答案

对于每个选项卡,我都使用validationEngine updatePromptsPosition方法解决了相同的问题……

I have solved the same problem using the validationEngine updatePromptsPosition method for each tab... Something like this:

$(".tabs-1").click(function(){
    $form.find('form').validationEngine('updatePromptsPosition');
});

这篇关于隐藏的字段上的jQuery-Validation-Engine错误位置弹出窗口(jquery选项卡)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆