本文介绍了C#点网验证帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我遇到了一个非常复杂的问题,实际上我正在制作一个网站,并且有10个TextBoxes
一张桌子中的5吨,另一张桌子中的5吨
像这样的东西

http://i52.tinypic.com/2qw0g2g.jpg


█████BOX1██████████BOX6█████
█████BOX2██████████BOX7█████
█████BOX3██████████BOX8█████
█████BOX4██████████BOX9█████
█████BOX5██████████BOX10████


现在的问题是我想验证Box6和Box7的值.

条件是:
如果BOX2已填充,则BOX6和BOX7也应填充.
如果填充了BOX3,则必须填写BOX6和BOX8.
如果填充了BOX4,则必须填写BOX6和BOX9.

现在,如果有人在BOX1下面的任何一个框中填充,则应该贴上标签,说我上面提到的各个框也是必须的.

如何使用javascript或其他任何方式?

Hello guys I am struck in a very complicated problem,actually I am making a website and there are 10 TextBoxes
5 in one td of a table and 5 in the other td
something like this

http://i52.tinypic.com/2qw0g2g.jpg


█████BOX1█████ █████BOX6█████
█████BOX2█████ █████BOX7█████
█████BOX3█████ █████BOX8█████
█████BOX4█████ █████BOX9█████
█████BOX5█████ █████BOX10████


Now the problem is that I want to validate Box6 and Box7 for values.

The conditions is that:
If BOX2 is filled then BOX6 AND BOX7 should also be filled.
If BOX3 is filled then BOX6 AND BOX8 is compulsory.
If BOX4 is filled then BOX6 and BOX 9 are compulsory.

Now if someone fills any of the box below BOX1 then a label should come saying the respective boxes I mentioned above are also mandatory.

How can I do it using javascript or any other way?

推荐答案



这篇关于C#点网验证帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 18:24