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')
精彩评论