Hi. I have a table set up with a .click() function on each row so that if it is clicked on, a class is added to the row thus changing the background, etc. I was wondering if there was is a way to take the id of the row that was clicked and populate a hidden field with it. What would I need to include in my .click() function for this to work?
Here is my current one: $("tr").click(function () { $(".clicked").removeClass("clicked"); $(this).addClass("clicked"); });