[eluser]kosminbonea[/eluser]
You really didn't say much about your setup, perhaps the checkbox could be added when you generate the table, and then just use the click event with jQuery. Otherwise, I'm sure you can at least specify in which <td> should the checkbox be added, with a class name. So something like this could be done:
Code:
$(document).ready(
function()
{
$("td.check").prepend(
'<input type="checkbox" />'
);
// then post to the required method
$("td.check input[@type='checkbox']").click(
function()
{
$.post(address, // the controller/method
{id: $("#someOtherElement").attr("id")}, // parameters you need to send
function(response) // perhaps do something with the response
{
$("div#messages").html(response); // if need be
}
);
}
);
Obviously, this has to be adapted to your specific needs, but this is how I'd do it. Hope this helps.