drnpwmq4536 2014-06-07 09:59
浏览 13

标记朋友2 jquery多个tagFormat

i am using jQuery - Tag a Friend 2 plugin for auto-complete action. It is working fine for the strings starting with @, but i have to use the same logic with tagFormat # for the same field. So the result should tracj both @ and # symbols and curresponding ajax urls are also different. Here is the deafault way of callinf the plugin

  $(function() {
    $('#post').tagfriends2({
        url: 'userList.php',
        debug: false,
        placeholder: '',
        onUpdate: function(data) {
            $('#count').text(data.count);
        },
        suggClass: 'suggetions',
        sugTpl: '<li><a data-val="{id}" href=""><table><tr><td><img src="{profile_image}"></td><td>{profile_name}</td></tr></table></a></li>'
    });

});

This will track @ symbols and giving auto-complete like facebook. I want an another autocomplete option for # symbols.

Purpose: @symbols is used for tagging users and # symbol for brands.

How can i do this?

  • 写回答

1条回答 默认 最新

  • drh37116 2014-07-10 07:37
    关注

    Currently it can't do this but will be in the future.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作