验证指定的文本框,只有 [英] Validate Specified TextBox Only

查看:99
本文介绍了验证指定的文本框,只有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个<输入类型=文本/方式> ,每个人都有一个与之相关的按钮

I have three <input type="text" /> and each one has a button associated with it.

TextBox1中 - > Submit1
TextBox2中 - > Submit2
TextBox3 - > Submit3

TextBox1 --> Submit1 TextBox2 --> Submit2 TextBox3 --> Submit3

我想只发生仅在相应的文本框验证。如果用户点击Submit2出现在TextBox2中唯一的验证。

I want Validation to occur only on the corresponding textbox only. If user click Submit2 only validation occurs on TextBox2.

我怎样才能做到这一点?

How can I do this?

推荐答案

您可以把它们放在单独的&LT;形式&GT; 和有每个表单一个提交按钮。

You could put them in separate <form>s and have a single submit button per form.

这篇关于验证指定的文本框,只有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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