facebook style jquery tokeninput script retains value in the jquery-ui modal window

前端 未结 1 1185
陌清茗
陌清茗 2020-12-12 08:01

trying to use facebook style tokeninput script which I\'ll use in the same way as FB uses(using jquery-ui to get the modal window) to send messages to friends in a social ne

相关标签:
1条回答
  • 2020-12-12 08:41

    It appears that you're loading the jquery.tokeninput.js file twice - you shouldn't need it in $(document).ready(...) so long as it comes after jQuery.

    Once you've displayed your modal (called $dialog.dialog('open');) try, calling:

    $('#demo-input-facebook-theme').tokenInput("clear");

    That should clear all of the previous tokens, then you can add any default tokens you want after that.

    0 讨论(0)
提交回复
热议问题