How to change the name dynamicaly using jQuery grid
- by kumar
I have jQuery grid with user data; my first column is ID:
$("#table").click(function(e) {
var row = jQuery(e.target).parent();
Name = row.attr("id");
Friends(Name);
});
Now when I click on the row I am getting the ID value. I am passing this ID to one function to display it.
It always shows the name of the first row - it isn't changing for every row click...
Any ideas?