I had used a webgrid and displayed the data fine.For one column in the webgrid i had used
grid.Column("SlmgReferenceNumber", header: "SLMG Number", format: @<text><label><a href="#" id="messages_slmgid" onclick="return MessagesViewClaim(this, '@item.NoteId', '@item.DealerId', '@item.SlmgReferenceNumber');">@item.SlmgReferenceNumber</a></label></text>),
i used 'this' as parameter in the function of onclick to get that particular anchor element but i cannot able to get it. It returns the url of the page. How to resolve it. I want the particular anchor element as the parameter in the onclick function.Can anyone please help me to find the solution..