tags - Comma is not working with Bootstrap TagsInput and Bootstrap Typeahead -


i going use bootstrap tagsinput , bootstrap typeahead in 1 of project.

when start typing, typeahead show suggestions. if press [enter], add correctly. there problem when type somthing , press [comma button , ] nothing.

here input:

<input type="text" autocomplete="false" id="tags" name="tags"> 

js codes:

$('#tags').tagsinput({             confirmkeys: [13, 188],             typeahead : {                 afterselect: function(val) { this.$element.val(""); },                 displaykey: 'text',                 valuekey: 'value',                 source: [                     { "value":"test1", "text":"test1" },                     { "value":"test2", "text":"test2" }                 ]             },             freeinput: true,             itemvalue: 'value',             itemtext: 'text',          }); 

change: confirmkeys: [13, 188],

to: confirmkeys: [13, 44],


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -