当文本数据动态生成时如何触发xval验证?

发布于 2024-08-15 07:08:51 字数 298 浏览 3 评论 0原文

我确实有三个文本框,其中都是必填字段。它与模型

Name* 紧密耦合:
年龄*:
检查按钮
日期* : //这是一个隐藏的文件

继续按钮

当我单击继续按钮时,将显示所有验证错误消息。 我正在输入姓名和年龄,然后单击继续。那么在继续之前单击检查按钮应该触发验证。

如果我单击检查按钮,将生成日期,并且验证错误消息仍将显示在页面上,直到我单击继续按钮。

我只想在单击验证按钮时清除验证消息。我怎样才能做到这一点。

I do have three text box, where all are required field. which is tightly coupled with a model

Name* :

Age* :

Check Button

Date* : //This is a hidden filed

Continue Button

When i click on continue button all the validation error messages will get displayed.
i am entering the Name and Age then click on Continue. then the validation should fire for click on check button before continuing.

if i click on check button,date will be generated, and the validation error message still will be displayed on the page until i click on continue button.

I just want to clear of the validation message when click on verfiy button. how can i do that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想你的星星会说话 2024-08-22 07:08:51

如果您想将验证与动态内容连接起来,您只需发送 xVal 生成的 javascript 及其应验证的内容即可。

If you want to wire up the validation with dynamic content you can simply send down the xVal generated javascript with the content it should validate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文