Victor
Victor

Reputation: 941

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
     {

     }

});

Upvotes: 1

Views: 201

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 190897

Try this selector.

$('.GridViewClass a')

Upvotes: 1

Related Questions