I am using this plugin in my site : http://sandglaz.github.io/bootstrap-tagautocomplete/
It's default options are :
$(document).ready(function(){
$('div#autotag').tagautocomplete({
source: ['@ann', '@andrea', '@aaron', '@daryl', '@emma', '@faris', '@june', '@jane', '@jessica', '@john', '@myra', '@maria', '@mariam', '@mention', '@mona', '@omar', '@peter', '@quinn', '@rana', '@sam', '@simon', '@tom', '@upton', '@veronica', '@wayne', '@yasmin', '@zaid', '#work', '#product', '#marketing', '#customer'],
character: '@#'
});
$('div#autotag').first().focus();
});
<div id="example" contenteditable="true"></div>
But i want the source with "Ajax" Option, something like this :-
jQuery(document).ready(function() {
jQuery('div#poststatus').tagautocomplete({
source: 'http://laravel.local/list',
character: '@#'
});
});
<div id="example" contenteditable="true"></div>
And In list, Resources are :-
['@ann', '@andrea', '@aaron', '@daryl', '@emma', '@faris', '@june', '@jane', '@jessica', '@john', '@myra', '@maria', '@mariam', '@mention', '@mona', '@omar', '@peter', '@quinn', '@rana', '@sam', '@simon', '@tom', '@upton', '@veronica', '@wayne', '@yasmin', '@zaid', '#work', '#product', '#marketing', '#customer']
But this is not working. Is it possible to make it ajaxified ?
i have textarea, where user will be typing more text & can have multiple tags too... something like twitter tweet box.
Thanks
Have you included this all files
In that case you want to add some text and also tag someone then ideal plugin to use is
Mention Input js
Try it