I am with the following function:
$ ("# GridView1 tr"). Click (function (e){
var $ cell = $ (e.target). closest ("td");
$ ("# TextBox3"). Val ($ cell.text ())
}
What makes the TextBox3 receive the value of clicked square on the table, what I needed was to get a specific value of the same row of the table by clicking on any square in that row. You can do this?
Since your jQuery event targets the
trelement, code inside the event callback will havethisassigned to that element’s DOM object by default. You can use that to find any of its children (any of the cells in the row).