can someone please suggest me how to retrieve the value of the index position of <TD> at run time to be specific here is the code
Expand|Select|Wrap|Line Numbers
- $("#Table_Data tr").click(function(){
- $(this).find(':checkbox').attr('checked', ! $(this).find(':checkbox').attr('checked'));
- if($(this).find(':checkbox').attr('checked'))
- {
- var index=$(this).
- var html = '';
- html = $('#clickME td:eq(1)').text();//here i have defined it statically but it needs to be dynamic
- alert(html);
- }
- else
- {
- $(this).removeClass('highlight');
- $(this).addClass('evenrow');
- }
- });
1) the index value and the text of that index value of <TD> should be according to the users selection meaning i have added a check box in my table
how to apply the same