How to change the name dynamicaly using jQuery grid

Posted by kumar on Stack Overflow See other posts from Stack Overflow or by kumar
Published on 2010-04-15T22:09:16Z Indexed on 2010/04/15 22:23 UTC
Read the original article Hit count: 181

Filed under:

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?

© Stack Overflow or respective owner

Related posts about jQuery