A
A
Antonio092020-05-09 17:24:48
JavaScript
Antonio09, 2020-05-09 17:24:48

How to disable duplicate input?

update.
https://jsfiddle.net/1yhxwof9/----------------------------------------

_ ---

and take into account that each next word - starts with the letter
that the previous one ends with
https://jsfiddle.net/a3yv0971/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
2CHEVSKII, 2020-05-09
@Antonio09

Check if the new value is already in cities , compare the first letter of the new value and the last letter of the last value in cities .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question