日期:2014-05-16  浏览次数:20367 次

新人求帮助,jQuery隐藏问题
我想把以下代码在document.all["ddlType"].value等于7或者8的时候用jQuery隐藏在首页,不知道怎么写

HTML code
                                <tbody id="DataSourceSet">
                                    <tr style="background-color: #f7f7f7" id="tr1">
                                        <td style="height: 22px" class="tdListRight">
                                            <span style="color:Black;font-weight:bold">数据源设置</span></td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr id="tr2">
                                        <td style="height: 22px; background-color: #f7f7f7" align="right" class="tdListLeft">
                                            数据源:</td>
                                        <td style="height: 22px; text-align: left" class="tdListRight">
                                            <asp:DropDownList ID="ddlDataSource" runat="server" CssClass="button">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="right" class="tdListLeft" style="height: 22px; background-color: #f7f7f7">
                                            同步策略</td>
                                        <td class="tdListRight" style="height: 22px; text-align: left">
                                            <table class="adminform">
                                                <tr>
                                                    <td style="height: 26px; text-align: left" colspan="2">
                                                        <asp:CheckBox ID="chkAutoSyn" runat="server" Text="自动同步数据源" AutoPostBack="True" OnCheckedChanged="chkAutoSyn_CheckedChanged" /></td>
                                                </tr>
                                                <tbody id="Tbody1">
                                                    <tr>
                                                        <td style="height: 26px; text-align: left" colspan="2">
                                                            <asp:RadioButtonList ID="rblDSKind" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblDSKind_SelectedIndexChanged"
                                                                Enabled="False">
                                                                <asp:ListItem Value="0" Selected="True">每天运行一次</asp:ListItem>
                                                                <asp:ListItem Value="1">每天运行多次</asp:ListItem>
                                                            </asp:RadioButtonList>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                                <tbody id="Tbody2">
                                                    <tr>
                                                        <td style="height: 22px; background-color: #f7f7f7