Please help me.
<!DOCTYPE html> <html> <body> <font size ="6" color="yellow" align="center"><div id="rectangle"><p>Lucid</p></div></font> <input type="text" id="myText" value="Type a country here"> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <script> var cities = ["Dubai" , "London"]; //////SEARCH/////////// function myFunction() { var x = document.getElementById("myText").value; alert(x); if(x == "cities"){ alert("Loading results for" + x); } else if(x !== cities){ alert("Please try again"); } ///////////////////// </script> </body> </html> This is my code. Now, the search bit is weird and i don not know what is going on. When I run the code it goes smoothly but then when I type in London it will come up with in an alert box: London Then: Please try again I don't know what my mistake is, could anyone help me please