Enter key submitting form, but can't make to be a confirm key
djmassive opened this issue · comments
Hi @djmassive currently I have the same issue, I'm using this to solve for now
$('.bootstrap-tagsinput input[type=text]').on('keydown', function (e)
{
if (e.which == 188) //188 = comma
{
$(this).blur();
e.preventDefault();
$(this).focus();
}
});
Regards
Try this
$('input[name=tags]').tagsinput();
$('.bootstrap-tagsinput input').keydown(function( event ) {
if ( event.which == 13 ) {
$(this).blur();
$(this).focus();
return false;
}
})