Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Functionalizing JavaScript 1
function() {
var objectId = $(this).data('objectid');
url: "/some/path",
type: "POST",
data: {
objectId: objectId
success: function() {
$('div[data-objectid="' + objectId + '"]').remove();
if($('#parentContainer div').length == 0){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.