- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个只有 Treeview 控件的用户控件。
<asp:TreeView ID="Tree_Index"
Style="font-size: 11px; font-family: Tahoma; font-weight: bold; text-align: left;" runat="server" Width="10px"
EnableClientScript="False" ShowCheckBoxes="All" ShowLines="True">
</asp:TreeView>
在我的 aspx 页面中,我多次使用此用户控件,以便在我的 aspx 页面中显示具有不同数据的多个 TreeView 。
我像下面这样调用用户控件
Public Sub PopulateTreeview()
Dim cph As ContentPlaceHolder = CType(Me.Master.FindControl("cphMain"), ContentPlaceHolder)
Dim Treeview_Control As Controls_Deot_treecontrol
Dim ds As DataSet = SPServiceModel.GetAllServiceCategorizationTypes()
Dim dtRight As DataTable = ds.Tables(0)
For i As Integer = 0 To dtRight.Rows.Count - 1
Treeview_Control = CType(LoadControl("Deot/treecontrol.ascx"), Controls_Deot_treecontrol)
Treeview_Control.ID = "Treecontrol_Right_" + i.ToString()
Treeview_Control.SetCategoryID(dtRight.Rows(i)("id").ToString())
cph.FindControl("pnl_right").Controls.Add(Treeview_Control)
Next
End Sub
假设我的 aspx 页面上有 6 个 TreeView 。我想在选择父节点时选择父节点的所有子节点。 TreeView 将具有三层节点。因此,应该为该特定树选择父节点内的所有节点。
我该如何实现这一点,因为ID是我在aspx页面中设置的。我如何使用 javascript 或 jquery 或用户控件的代码隐藏来实现此目的?
渲染的 HTML:
<div id="ctl00_cphMain_pnl_left">
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("div[id $= Tree_Index] input[type=checkbox]").click(function () {
$(this).closest("table").next("div").find("input[type=checkbox]").attr("checked", this.checked);
});
});
</script>
<a href="#ctl00_cphMain_ctl03_Tree_Index_SkipLink"><img width="0" height="0" style="border-width:0px;" src="/WebResource.axd?d=vp_dPIRRqCpyFrxPBwqvPmsO-wa56CpxZGlT_T-AdX5QN0qJOs_wgfq4QMJwRILSj9XSONYmkJAe85CVEph0Q1SfUqs1&t=634604712479085897" alt="Skip Navigation Links."></a><div style="width:10px;font-size: 11px; font-family: Tahoma; font-weight: bold; text-align: left;" onclick="OnTreeClick(event)" id="ctl00_cphMain_ctl03_Tree_Index">
<table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><a href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','t1730b784-94ca-42d3-80aa-1c9c064e271c')"><img style="border-width:0;" alt="Collapse Clinics" src="/WebResource.axd?d=_533LbcrYzxclETTqT9E9lbjpoP9iiSVLn9WP908dD96sH9D2JXH4BN8Q2OdATM4TYJU67kfDSnJQpffp_ITMVu3Y839pir-IzEhB41mqu6U8EWb0&t=634604712479085897"></a></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn0CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn0CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext0" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c')" class="ctl00_cphMain_ctl03_Tree_Index_0">Clinics</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn1CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn1CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext1" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\8086a7e5-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Respite Care Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn2CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn2CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext2" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\5586a7e5-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Caregiver Training</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn3CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn3CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext3" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\643eafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Psychiatric Rehabilitation Homes</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn4CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn4CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext4" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\613dafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Befriending Service</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn5CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn5CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext5" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\6fe899f7-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Polyclinics</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn6CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn6CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext6" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\7393b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Caregiver Support Service</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=BOvsSO2B3BKMupOSRxbma89ER-i_r1FrqfnVsgVq_QiVog3IJUebdD29i4BVAo26-lbJh_BLXmsQGU_VArXhNt6ejiWJk87whzKer6ts-_kM9Vt90&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl03_Tree_Indexn7CheckBox" name="ctl00_cphMain_ctl03_Tree_Indexn7CheckBox"><a id="ctl00_cphMain_ctl03_Tree_Indext7" href="javascript:__doPostBack('ctl00$cphMain$ctl03$Tree_Index','s1730b784-94ca-42d3-80aa-1c9c064e271c\\7a93b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl03_Tree_Index_0">Helpline - Caregiver Helpline</a></td>
</tr>
</tbody></table>
</div><a id="ctl00_cphMain_ctl03_Tree_Index_SkipLink"></a>
<br>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("div[id $= Tree_Index] input[type=checkbox]").click(function () {
$(this).closest("table").next("div").find("input[type=checkbox]").attr("checked", this.checked);
});
});
</script>
<a href="#ctl00_cphMain_ctl04_Tree_Index_SkipLink"><img width="0" height="0" style="border-width:0px;" src="/WebResource.axd?d=vp_dPIRRqCpyFrxPBwqvPmsO-wa56CpxZGlT_T-AdX5QN0qJOs_wgfq4QMJwRILSj9XSONYmkJAe85CVEph0Q1SfUqs1&t=634604712479085897" alt="Skip Navigation Links."></a><div style="width:10px;font-size: 11px; font-family: Tahoma; font-weight: bold; text-align: left;" onclick="OnTreeClick(event)" id="ctl00_cphMain_ctl04_Tree_Index">
<table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><a href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','tace7ae2e-c160-4982-a90f-785fc5b7cca7')"><img style="border-width:0;" alt="Collapse Home Care" src="/WebResource.axd?d=_533LbcrYzxclETTqT9E9lbjpoP9iiSVLn9WP908dD96sH9D2JXH4BN8Q2OdATM4TYJU67kfDSnJQpffp_ITMVu3Y839pir-IzEhB41mqu6U8EWb0&t=634604712479085897"></a></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn0CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn0CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext0" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7')" class="ctl00_cphMain_ctl04_Tree_Index_0">Home Care</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><a href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','tace7ae2e-c160-4982-a90f-785fc5b7cca7\\0f93b4d9-217e-e111-9ca9-005056ba0039')"><img style="border-width:0;" alt="Collapse Home Nursing" src="/WebResource.axd?d=PtoZaOE4OJ68kA17eB1Ru-nLDbZ-ilvB8z5abVJ8BfKZp0iKKZ8iPpsV8tJ5bLWmNAAyfP3gCpxQRyrUtuHqeJKGILYd8Nbb3deoYK17HD9ZYyeS0&t=634604712479085897"></a></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn1CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn1CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext1" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\0f93b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Home Nursing</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"><img alt="" src="/WebResource.axd?d=J9BSVEmYJ2R79DzKPp_KwudhxkmRYjt31taLGpqjHFuG3gyciimdNIz2hfef3rMTcgKKF9rZcFetwoS-fvXnw3uYWh88CZ98-dNXPYEoMwTaffwZ0&t=634604712479085897"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn2CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn2CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext2" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\0f93b4d9-217e-e111-9ca9-005056ba0039\\00000000-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Third Level 1</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><div style="width:20px;height:1px"><img alt="" src="/WebResource.axd?d=J9BSVEmYJ2R79DzKPp_KwudhxkmRYjt31taLGpqjHFuG3gyciimdNIz2hfef3rMTcgKKF9rZcFetwoS-fvXnw3uYWh88CZ98-dNXPYEoMwTaffwZ0&t=634604712479085897"></div></td><td><img alt="" src="/WebResource.axd?d=BOvsSO2B3BKMupOSRxbma89ER-i_r1FrqfnVsgVq_QiVog3IJUebdD29i4BVAo26-lbJh_BLXmsQGU_VArXhNt6ejiWJk87whzKer6ts-_kM9Vt90&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn3CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn3CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext3" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\0f93b4d9-217e-e111-9ca9-005056ba0039\\11111111-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Third Level 2</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn4CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn4CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext4" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\c13eafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Private Nursing Homes</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn5CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn5CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext5" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\1493a4eb-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Personal Healthcare Assistant</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn6CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn6CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext6" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\f592b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Home Medical</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn7CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn7CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext7" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\2493b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Home Therapy - Physiotherapy</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn8CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn8CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext8" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\1a93b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Home Therapy - Occupational Therapy</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn9CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn9CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext9" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\083eafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Social Day Care Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn10CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn10CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext10" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\e7ba9bfd-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Community VWO Clinics</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn11CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn11CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext11" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\b292b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Day Rehabilitation Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn12CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn12CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext12" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\2087a7e5-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Community Wellness Clubs</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=BOvsSO2B3BKMupOSRxbma89ER-i_r1FrqfnVsgVq_QiVog3IJUebdD29i4BVAo26-lbJh_BLXmsQGU_VArXhNt6ejiWJk87whzKer6ts-_kM9Vt90&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl04_Tree_Indexn13CheckBox" name="ctl00_cphMain_ctl04_Tree_Indexn13CheckBox"><a id="ctl00_cphMain_ctl04_Tree_Indext13" href="javascript:__doPostBack('ctl00$cphMain$ctl04$Tree_Index','sace7ae2e-c160-4982-a90f-785fc5b7cca7\\8f93b4d9-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl04_Tree_Index_0">Community Hospitals</a></td>
</tr>
</tbody></table>
</div><a id="ctl00_cphMain_ctl04_Tree_Index_SkipLink"></a>
<br>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("div[id $= Tree_Index] input[type=checkbox]").click(function () {
$(this).closest("table").next("div").find("input[type=checkbox]").attr("checked", this.checked);
});
});
</script>
<a href="#ctl00_cphMain_ctl05_Tree_Index_SkipLink"><img width="0" height="0" style="border-width:0px;" src="/WebResource.axd?d=vp_dPIRRqCpyFrxPBwqvPmsO-wa56CpxZGlT_T-AdX5QN0qJOs_wgfq4QMJwRILSj9XSONYmkJAe85CVEph0Q1SfUqs1&t=634604712479085897" alt="Skip Navigation Links."></a><div style="width:10px;font-size: 11px; font-family: Tahoma; font-weight: bold; text-align: left;" onclick="OnTreeClick(event)" id="ctl00_cphMain_ctl05_Tree_Index">
<table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><a href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','tfc052442-3b20-4cdc-8d20-9c8544ac1c6f')"><img style="border-width:0;" alt="Collapse Other Services" src="/WebResource.axd?d=_533LbcrYzxclETTqT9E9lbjpoP9iiSVLn9WP908dD96sH9D2JXH4BN8Q2OdATM4TYJU67kfDSnJQpffp_ITMVu3Y839pir-IzEhB41mqu6U8EWb0&t=634604712479085897"></a></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn0CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn0CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext0" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f')" class="ctl00_cphMain_ctl05_Tree_Index_0">Other Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn1CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn1CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext1" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f\\45bb0a98-ec44-e211-beaf-005056ba0039')" class="ctl00_cphMain_ctl05_Tree_Index_0">Mobile Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn2CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn2CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext2" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f\\9b3dafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl05_Tree_Index_0">Hospice Day Care</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn3CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn3CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext3" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f\\f83dafdf-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl05_Tree_Index_0">Website - Disability Information Website</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=Ptpr_s5NKQd2NhXQH_MiSClxDVR5ZHar9QZwFenhB3L_8-vIXRA_NHlxqP3iWPQWzSbDizVZ5YO8o3q4fX1XUhismQEMBdpf8AuHvaSyrvYco4WB0&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn4CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn4CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext4" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f\\33333333-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl05_Tree_Index_0">Information & Referral Services</a></td>
</tr>
</tbody></table><table cellspacing="0" cellpadding="0" style="border-width:0;">
<tbody><tr>
<td><div style="width:20px;height:1px"></div></td><td><img alt="" src="/WebResource.axd?d=BOvsSO2B3BKMupOSRxbma89ER-i_r1FrqfnVsgVq_QiVog3IJUebdD29i4BVAo26-lbJh_BLXmsQGU_VArXhNt6ejiWJk87whzKer6ts-_kM9Vt90&t=634604712479085897"></td><td style="white-space:nowrap;"><input type="checkbox" id="ctl00_cphMain_ctl05_Tree_Indexn5CheckBox" name="ctl00_cphMain_ctl05_Tree_Indexn5CheckBox"><a id="ctl00_cphMain_ctl05_Tree_Indext5" href="javascript:__doPostBack('ctl00$cphMain$ctl05$Tree_Index','sfc052442-3b20-4cdc-8d20-9c8544ac1c6f\\44444444-217e-e111-9ca9-005056ba0039')" class="ctl00_cphMain_ctl05_Tree_Index_0">Ambulance Service (Non-Emergency)</a></td>
</tr>
</tbody></table>
</div><a id="ctl00_cphMain_ctl05_Tree_Index_SkipLink"></a>
<br>
</div>
最佳答案
您可以简单地使用此代码
$(document).ready(function() {
$("div[id $= Tree_Index]").find("input[type=checkbox]:first").click(function() {
$(this).closest("div").find(':checkbox').attr('checked', this.checked);
});
});
关于javascript - 在 TreeView 中选择父节点时如何选择所有子节点? (当从用户控件使用 TreeView 时),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16706482/
我在网上搜索但没有找到任何合适的文章解释如何使用 javascript 使用 WCF 服务,尤其是 WebScriptEndpoint。 任何人都可以对此给出任何指导吗? 谢谢 最佳答案 这是一篇关于
我正在编写一个将运行 Linux 命令的 C 程序,例如: cat/etc/passwd | grep 列表 |剪切-c 1-5 我没有任何结果 *这里 parent 等待第一个 child (chi
所以我正在尝试处理文件上传,然后将该文件作为二进制文件存储到数据库中。在我存储它之后,我尝试在给定的 URL 上提供文件。我似乎找不到适合这里的方法。我需要使用数据库,因为我使用 Google 应用引
我正在尝试制作一个宏,将下面的公式添加到单元格中,然后将其拖到整个列中并在 H 列中复制相同的公式 我想在 F 和 H 列中输入公式的数据 Range("F1").formula = "=IF(ISE
问题类似于this one ,但我想使用 OperatorPrecedenceParser 解析带有函数应用程序的表达式在 FParsec . 这是我的 AST: type Expression =
我想通过使用 sequelize 和 node.js 将这个查询更改为代码取决于在哪里 select COUNT(gender) as genderCount from customers where
我正在使用GNU bash,版本5.0.3(1)-发行版(x86_64-pc-linux-gnu),我想知道为什么简单的赋值语句会出现语法错误: #/bin/bash var1=/tmp
这里,为什么我的代码在 IE 中不起作用。我的代码适用于所有浏览器。没有问题。但是当我在 IE 上运行我的项目时,它发现错误。 而且我的 jquery 类和 insertadjacentHTMl 也不
我正在尝试更改标签的innerHTML。我无权访问该表单,因此无法编辑 HTML。标签具有的唯一标识符是“for”属性。 这是输入和标签的结构:
我有一个页面,我可以在其中返回用户帖子,可以使用一些 jquery 代码对这些帖子进行即时评论,在发布新评论后,我在帖子下插入新评论以及删除 按钮。问题是 Delete 按钮在新插入的元素上不起作用,
我有一个大约有 20 列的“管道分隔”文件。我只想使用 sha1sum 散列第一列,它是一个数字,如帐号,并按原样返回其余列。 使用 awk 或 sed 执行此操作的最佳方法是什么? Accounti
我需要将以下内容插入到我的表中...我的用户表有五列 id、用户名、密码、名称、条目。 (我还没有提交任何东西到条目中,我稍后会使用 php 来做)但由于某种原因我不断收到这个错误:#1054 - U
所以我试图有一个输入字段,我可以在其中输入任何字符,但然后将输入的值小写,删除任何非字母数字字符,留下“。”而不是空格。 例如,如果我输入: 地球的 70% 是水,-!*#$^^ & 30% 土地 输
我正在尝试做一些我认为非常简单的事情,但出于某种原因我没有得到想要的结果?我是 javascript 的新手,但对 java 有经验,所以我相信我没有使用某种正确的规则。 这是一个获取输入值、检查选择
我想使用 angularjs 从 mysql 数据库加载数据。 这就是应用程序的工作原理;用户登录,他们的用户名存储在 cookie 中。该用户名显示在主页上 我想获取这个值并通过 angularjs
我正在使用 autoLayout,我想在 UITableViewCell 上放置一个 UIlabel,它应该始终位于单元格的右侧和右侧的中心。 这就是我想要实现的目标 所以在这里你可以看到我正在谈论的
我需要与 MySql 等效的 elasticsearch 查询。我的 sql 查询: SELECT DISTINCT t.product_id AS id FROM tbl_sup_price t
我正在实现代码以使用 JSON。 func setup() { if let flickrURL = NSURL(string: "https://api.flickr.com/
我尝试使用for循环声明变量,然后测试cols和rols是否相同。如果是,它将运行递归函数。但是,我在 javascript 中执行 do 时遇到问题。有人可以帮忙吗? 现在,在比较 col.1 和
我举了一个我正在处理的问题的简短示例。 HTML代码: 1 2 3 CSS 代码: .BB a:hover{ color: #000; } .BB > li:after {
我是一名优秀的程序员,十分优秀!