Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
function GetSelectedRow(e) {
       var clickedRow = $(e).closest("tr");
       var id = $(clickedRow).find('td').eq(0).text();
       var gvcheck = document.getElementById('<%=dgv_Modules.ClientID %>');
       var chklist = gvcheck.getElementsByTagName('input');
       for (var i = 0; i < chklist.length; i++) {
           if ($(chklist[i]).prop("checked")) {
             //Here I want to find out first td of checked checkbox
           }
       }
       return false;
   }



chklist is a checkbox
Posted
Comments
Jameel VM 20-Aug-14 3:56am    
try $(this).parent()

 
Share this answer
 
Comments
Gihan Liyanage 15-Sep-14 6:16am    
Did you got a solution from my support, I can see you have not accepted any answer.If you are ok with this answer plz accept it. Then any user having same problem can identified it has solved the problem..
Try
C#
if ($(chklist[i]).attr('checked')) {
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900