返回首页

你好,我是在发展领域的新...我有问题验证......这是我的网页图..

NoOfAnswers:12345671234567***here i have a dropdownlist of seven answers...every answer is associated with textbox and checkbox...here above textbox has been written as 1 t0 7...previous one just as no of answrs in DRP frm 1 to7..pls i want to put validation on checkbox..so that we could skip to click on  only one answer..so pls help me out..if i click on 3 answers frm DRP thn we will not be allowed to skip it..at least on answer must be checked..pls help me out..

 

[CbxAnswer1]

[CbxAnswer2]

[CbxAnswer3]

[CbxAnswer4]

[CbxAnswer5]

[CbxAnswer6]

[CbxAnswer7]

thanks .....

回答

评论会员:SAKryukov 时间:2012/02/06
你会发现一些想法,在我最近的解决方案。]

mdash;的SA:范围| shashikanth 2011
评论会员:游客 时间:2012/02/06
我没有得到你的问题很明显,但你想验证下拉列表权利下降..只是经过这..{C}codeprelang="Javascript"spanclass="code-keyword"function/spanvalidate(){ spanclass="code-keyword"var/spani=selctionlist.selectedIndex;spanclass="code-keyword"if/span(c[i].checked==spanclass="code-keyword"false/span)alert(spanclass="code-string""/spanspanclass="code-string"Pleasecheckbox"/span+(i+1));}/pre/code的