开发者

jquery gridview

开发者 https://www.devze.com 2022-12-19 12:12 出处:网络
On my pages, ASP.NET 3.5 I have hyperlinks, both inside and outside the gridviews.Is there any way to determine which type was clicked - inside or outside? All GridViews have 开发者_运维问答same CssCl

On my pages, ASP.NET 3.5 I have hyperlinks, both inside and outside the gridviews. Is there any way to determine which type was clicked - inside or outside? All GridViews have 开发者_运维问答same CssClass but I don't want to use CssClass for any elements inside the grid.

$("a").click(function(e)
{
     //this attribute doesn't exist this is just to give an idea
     if($(this).attr('ParentClass') = "GridViewClass")  
     {

     }
     else
     {

     }

});


Try this selector.

$('.GridViewClass a')
0

精彩评论

暂无评论...
验证码 换一张
取 消