Sunday, June 23, 2013

Find Control inside any repeater row or html row using Jquery

To find the control just pass the current row object from any front end page(ASPX, PHP, HTML etc)

1. row.all will give all the elements present in the row
2. use find method to find the element of particular id. I used id*= any id which contains lblName. i have only one label.

function FindConrol(row) {
            var label = $(row.all).find('[id*=lblName]');
            alert(label.text());
        }

we can perform the same operation using .each function

This idea is better than using
row.cell[cellnumber].all[elementNumber] 

No comments: