I've looked at the other post regarding the Same Question
But this is insufficient for what I have to ask about.
It's very simple actually, I want to access the cell value from Javascript.
I have tried this:
var grid = document.getElementById('<%=gvUdgivelser.ClientID%>');
var cell = grid.rows[0].cells[5].innerText;
But I get a undefined in return. If I use the innerHTML I get a result with the full HTML, which I am not interested in.
However, how do I pass a rowIndex to a function from the gridview button, in order for the code to find out which row was clicked?