codersgrave / Facebook-Friend-Selector

This repo is no longer maintained. Feel free to fork and update!
http://facebook-friend-selector.codersgrave.com
64 stars 22 forks source link

How to write friendselector function using jquery' on #15

Open KPRATIK opened 10 years ago

KPRATIK commented 10 years ago

For some use-case I need to use friendselector function using jquery'on (http://api.jquery.com/on/) Could you please help me how can I use this function with jquery's on: $(".bt-fs-dialog").fSelector({ onSubmit: function(response){ // example response usage alert(response); } });

fnagel commented 10 years ago

It seems this is not possible as it would need adjustments to the plugin code base.

Try this workaround:

$("<div>").fSelector().trigger("click");