忽略包含下拉列表的网格视图单元格

Ignore gridview cells containing dropdown

本文关键字:网格 视图 单元格 下拉列表 包含      更新时间:2023-09-26

我有一个包含控件的网格视图。网格视图具有css类"Grid"。

我在网格视图上循环并选择其中的文本,但我不想在这个网格视图中的下拉列表中选择文本。

$('.grid tr td').live('mouseover',
        function () {
                $(this).attr("title", $(this).text());
                $(this).aToolTip({
                    // no need to change/override  
                    closeTipBtn: 'aToolTipCloseBtn',
                    toolTipId: 'aToolTip',
                    // ok to override  
                    fixed: false,                   // Set true to activate fixed position  
                    clickIt: false,                 // set to true for click activated tooltip  
                    inSpeed: 200,                   // Speed tooltip fades in  
                    outSpeed: 100,                  // Speed tooltip fades out  
                    tipContent: '',                 // Pass in content or it will use objects 'title' attribute  
                    toolTipClass: 'defaultTheme',   // Set class name for custom theme/styles  
                    xOffset: 5,                     // x position  
                    yOffset: 5,                     // y position  
                    onShow: null,                   // callback function that fires after atooltip has shown  
                    onHide: null                    // callback function that fires after atooltip has faded out  
                });

        });

这是我在网格中循环的jquery代码,但我不知道如何从这个循环中过滤下拉列表。

我试过$('.grid tr td').not('.dropdownCssClass').live('mouseover',但不起作用请帮帮我。

尝试使用以下选择器:

$('.grid tr td:not(:has(select))')

$('.grid tr td:not(:has(.dropdownCssClass))')