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?