Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/7cf81c07ed7ac6fa7d65 to your computer and use it in GitHub Desktop.
Save phpdave/7cf81c07ed7ac6fa7d65 to your computer and use it in GitHub Desktop.
$("#table tbody").click(function(event) {
rowid = $(event.target.parentNode.childNodes[0]).html();
$.post(
"/Application/Controller/Action",
{
"ID" : rowid
},
function(response)
{
console.log(response.message);
rowDetails = response.rowdetails;
$.each(rowDetails, function(i, val) {
newRowDetailsHtml += "<tr><td>"+i + "</td><td>" + val + "</td></tr>";
});
},"json");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment