使用javascript验证面板和radiobutton列表 [英] validation of panel and radiobutton list using javascript
本文介绍了使用javascript验证面板和radiobutton列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI
我的网页形式如下:
HI
I have a webform like:
<asp:Panel ID="pnlLbl" runat ="server" Visible ="false" >
<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:RadioButtonList>
<asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:RadioButtonList></asp:Panel>
<br /><asp:Button ID="Button1" runat ="server" Text="submit" />
现在我必须返回false值,如果pnlLbl = visible并且如果没有选择radiobuttonlist,则通过javascript。
请建议。
Now I have to return false value if pnlLbl=visible and if none of the radiobuttonlist is selected, through javascript.
Please suggest.
推荐答案
看到这篇文章..对你来说可能会有所帮助。
Link here
see this article..it may be helpful to u
Link Here
这篇关于使用javascript验证面板和radiobutton列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文