如果选择了选项组合,则验证输入 [英] Validate input if options combo selected
问题描述
大家好,
如何验证以下输入文字:
如果选项组合= 1,2 e 3,输入必须填写1和输入2,如果其中一个值未在组合中选择(将成为其他),则填充输入3.
验证代码,错误如下:
Hi everybody,
how to validate input text in the follow:
if option combo = 1,2 e 3, input 1 and input 2 must be filled, if one of this values not selected in combo (to be others), filled input 3.
validate code with error below:
推荐答案
如果选项组合= 1, 2 e 3,必须填写输入1和输入2,如果其中一个值未在组合中选择(作为其他),则填充输入3.
if option combo = 1,2 e 3, input 1 and input 2 must be filled, if one of this values not selected in combo (to be others), filled input 3.
这是否意味着如果组合框中选择了选项1,2或3,则需要验证输入1和2是否已填充。如果没有选择这些,则必须填写输入3。这是正确的吗?
Does this mean that if the combo box has options 1, 2, or 3 selected, you want to validate that inputs 1 and 2 are filled. If none of these are selected, then input 3 has to be filled. Is that correct?
这是否意味着如果组合框中选择了选项1,2或3,则需要验证输入1和2填充。如果没有选择这些,则必须填写输入3。那是对的吗?
Does this mean that if the combo box has options 1, 2, or 3 selected, you want to validate that inputs 1 and 2 are filled. If none of these are selected, then input 3 has to be filled. Is that correct?
组合框有5个选项,如果选择其中一个选项(1,2,3),则必须填写输入文本1和2(对于用户) )。如果选择了选项,则必须填写4或5个输入文本3。好的?!
谢谢!
The combo box has 5 options, if one of this options (1,2,3) will selected then input text 1 and 2 must be filled (for the user). If selected option will selected 4 or 5 input text 3 must be filled. Ok?!
Thanks!
这篇关于如果选择了选项组合,则验证输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!