开发者

jquery gridview

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜