Created
January 28, 2011 17:49
-
-
Save amirshim/800641 to your computer and use it in GitHub Desktop.
returns name/id object pair list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are many solutions on stackoverflow Search for jquery ajax json