How to submit a tag with Bootstrap Tags Input plugin with space key?
javascript, jquery, twitter-bootstrap
Solution
You need to specify the `confirmKeys` parameter. From the documentation the default is to only have keycode for enter (13), but you can add the code for comma (44) and space (32) like this:
$('input').tagsinput({
confirmKeys: [13, 32, 44]
});
Problem
I'm building a form with a field that is using the Bootstrap Tags Input plugin. This plugin inputs a tag once the user clicks the Enter key. Can anyone help use the documentation of the plugin to input a tag once the user puts a "," (comma) or a space in the field? Here is the documentation - http://timschlechter.github.io/bootstrap-tagsinput/examples/ 2020 edit: heres the doco: https://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/