creating a tag using jquery bootstrap-tagsinput without hitting the enter key -
im using jquery bootstrap-tagsinput
, method creating tag hitting come in key after typing in. looking more easy user method of creating tags. thinking onblur
somewhere in bootstrap-tagsinput.js
file.
can assist?
bootstrap tagsinput
thanks.
you can modify plugin (bootstratp-tagsinput.js) , add together on blur event (i pretty much copied 1 on keydown event):
self.$container.on('blur', 'input', $.proxy(function(event) { var $input = $(event.target); if (self.options.freeinput) { self.add($input.val()); $input.val(''); event.preventdefault(); } // reset internal input's size $input.attr('size', math.max(this.inputsize, $input.val().length)); }, self));
jquery twitter-bootstrap javascript-events tags onblur
No comments:
Post a Comment