I implemented this because I had other div displaying the friends I selected through the multi-friend-selector but I also needed to be able to deselect a selection in the multi-friend-selector via these other locations.
So now I can call:
$("#deselectFriend").live("click", function () { var friendSelector = $("#jfmfs-container").data('jfmfs'); friendSelector.deselect($("#selectedFriendId").text()); });
I implemented this because I had other div displaying the friends I selected through the multi-friend-selector but I also needed to be able to deselect a selection in the multi-friend-selector via these other locations.
So now I can call:
$("#deselectFriend").live("click", function () { var friendSelector = $("#jfmfs-container").data('jfmfs'); friendSelector.deselect($("#selectedFriendId").text()); });