I have developed a word completer using Bootstrap for styling, but I am facing issues in the output. The program is built using jQuery and JavaScript, and the results are displayed in a list format. However, I am unsure how to resolve this problem.
https://i.sstatic.net/RnrO8.png
Below is the code snippet:
word_finder.html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Autocomplete Sentences</title>
<!-- Libraries -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
$( function() {
var availableTags = [
"Apple",
...
"Python",
"Ruby",
"Scala",
"Scheme",
"Türk Hava Kurumu Üniversitesi"
];
$( "#tags" ).autocomplete({
source: availableTags
});
} );
</script>
</head>
<body>
<div class="ui-widget">
<h1 style="color: purple;"> Word Finder </h1>
<br>
<p class=" lead text-primary">Welcome. As you start writing, suggestions will start to appear. </p>
<label for="tags">Start typing </label>
<input id="tags" class="form-control" style=" position: center;">
</div>
</body>
<style> ... <style>
</html>