Skip to content

Instantly share code, notes, and snippets.

@amirshim
Created January 28, 2011 17:49
Show Gist options
  • Save amirshim/800641 to your computer and use it in GitHub Desktop.
Save amirshim/800641 to your computer and use it in GitHub Desktop.
returns name/id object pair list
this.getSelectedIds = function() {
var ids = [];
$.each(elem.find(".jfmfs-friend.selected"), function(i, friend) {
ids.push({id:$(friend).attr("data-id"), name:$(friend).find('.friend-name').text()});
});
return ids;
};
@amirshim
Copy link
Author

There are many solutions on stackoverflow Search for jquery ajax json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment