在复选框的帮助下绑定下拉菜单! [英] Bind Dropdown with the help of check box!

查看:67
本文介绍了在复选框的帮助下绑定下拉菜单!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在下拉列表中绑定复选框列表。

假设我们正在检查下拉列表中的两个复选框

所以代表检查我们必须绑定otherdropdown。 />


示例:与第一次下拉菜单一样,我们正在检查美国和英国国家,因此我们必须代表国家/地区下拉州绑定州下拉菜单,但我们可能会同时选择多个国家/地区通过复选框。

解决方案

请参阅以下链接

多选DropDownList(DropDownList内的CheckBoxList) [ ^ ]

ASP.NET多项选择DropDownList与AJAX HoverMenuExte nder [ ^ ]


在Jquery和WebMethod的帮助下,你可以实现这个目标: -



 <   html     xmlns   =  http://www.w3.org / 1999 / xhtml >  
< head runat = server >
< title > < / title >

< script < span class =code-attribute> type = text / javascript src = http://code.jquery.com/jquery-1.9.1.js > < / script >

< script 类型 = text / javascript language = javascript >


(function(){
var stuff = [];

I have to bind checkbox list inside dropdownlist.
Suppose we are checking two checkbox inside dropdownlist
so on the behalf of checking we have to bind otherdropdown.

Example: Like in 1st dropdown we are checking US and UK country so we have to bind state dropdown on behalf of country dropdown but we might select more than one country at a time through checkbox.

解决方案

See the following links
A Multiple Selection DropDownList (a CheckBoxList Inside a DropDownList)[^]
ASP.NET Multiple Selection DropDownList with AJAX HoverMenuExtender[^]


With the help of Jquery and WebMethod you can achieve this:-

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>

    <script type="text/javascript" language="javascript">


(function() { var stuff = [];


这篇关于在复选框的帮助下绑定下拉菜单!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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