Skip to content

Instantly share code, notes, and snippets.

@BryanWilhite
Created November 12, 2014 23:16
Show Gist options
  • Save BryanWilhite/f8b26720413dc1716f9a to your computer and use it in GitHub Desktop.
Save BryanWilhite/f8b26720413dc1716f9a to your computer and use it in GitHub Desktop.
ASP.NET MVC3: $.ajax for JSON
$.ajax({
type: 'POST',
url: postUri,
data: JSON.stringify(data),
dataType: 'json',
contentType: 'application/json; charset=utf-8'
})
.then(function () {
$('#ReceiveAndVerifyEntries > tbody').children().remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment