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
are you a freelance coder? and if so how much per hour and would you like to be a part of my upcoming project?
at the bottom of the script i can call the selected names in a div but i'm having trouble putting that data into a form, what i would like to see happen is the selected friends facebook userid post to a hidden form element so i can pass this data to my database. any help would be greatly appreciated.