Completed

Javascript Code Issue with Bootstrap Tags Input

I've got a tagsinput field with typeahead and everything is working fine. I can type in a value and if any of the typeahead results come up I can select and press enter to have it added to the tag input field.

However, when I enter a tag value that isn't in the typeahead list and press enter, the form is submitted. I want to prevent this behavior and have tried a few methods and just can't seem to get it to work. I've attached a screenshot of the javascript code I have right now. The issue with this code is that, while it does prevent the enter key from submitting the form, it also prevents the enter key from adding the tag.

What I need is to have the enter key work to create the tag but not submit the form. I need this code fix urgently so today if at all possible. Thank you!

Skills: Javascript, jQuery / Prototype

See more: js bootstrap tagsinput js, bootstrap tags input typeahead, bootstrap tagsinput clear, bootstrap tags input autocomplete, how to use bootstrap tags input, data-role="tagsinput", bootstrap tags input not working, bootstrap 4 tags input, javascript code web page alterations, javascript code video page overlay, javascript code php open page, javascript code creating login page user page, hide html tags input textarea javascript, javascript code open web page inside, remove javascript code html page java

About the Employer:
( 37 reviews ) Gainesville, United States

Project ID: #17148797

Awarded to:

coronajames

Dear clients I read your proposal carefully. I have experienced in solving that kind of problems. If you hire me, I will make you satisfy about this project. Thanks, best regards.

$10 USD in 1 day
(1 Review)
0.8

17 freelancers are bidding on average $22 for this job

$30 USD in 0 days
(14 Reviews)
5.1
shayona163

hello sir i am expert in javascipt i am able to do this work you will satisfy with my work i can do this work asap this simple work for asap thank you

$25 USD in 1 day
(29 Reviews)
4.7
$10 USD in 1 day
(16 Reviews)
4.7
$30 USD in 1 day
(15 Reviews)
4.5
krzyfuture

Hi Thanks for your posting job with precious time. I am glad to bid your job as a experienced web developer. With full understanding, deep knowledge and experience of practice, I am very familiar with angular,codeig More

$25 USD in 1 day
(15 Reviews)
4.2
$30 USD in 1 day
(5 Reviews)
4.1
$25 USD in 2 days
(17 Reviews)
4.0
bitterpotato

Can be easily and quickly fixed.

$20 USD in 1 day
(5 Reviews)
2.5
projeshromi

I can do this by 1 day after project been assigned.. done this kind of job frequently.. experienced developer of ui/ux industry

$17 USD in 1 day
(1 Review)
2.5
anatoly02

i am working as a senior web developer. i dont want much money, but hope full stars and trust. i am sure we can finish our project successfully. thanks a lot regards

$15 USD in 1 day
(7 Reviews)
2.0
ONYEMATeam

hi dear i'm expert in client scripting javascript , jquery , angularjs , asp.net and desktop , soliditry , xamarin ,javascript , erc20 see my last project [login to view URL] token erc20 server scripting php , [login to view URL] mvc a More

$25 USD in 1 day
(1 Review)
0.0
Firdovsi1996

Hi. I can get your order. I have a big experience on JavaScript/jQuery and Bootstrap 3-4. Just contacty me to discuss details

$25 USD in 1 day
(0 Reviews)
0.0
sdad504

I am a web developer and UI developer as well.I have done many projects related to jquery,css3,bootstrap etc.,.I can definitely fix your issue.

$15 USD in 1 day
(0 Reviews)
0.0
anusetia

I got your issue and can try to fix it

$30 USD in 1 day
(0 Reviews)
0.0
$20 USD in 1 day
(0 Reviews)
0.0
$15 USD in 0 days
(1 Review)
0.0