This is very basic code. Still I am facing a problem. I think I am missing something, as mentioned on bootstrap site
\"Plugins can be included indivi
$('#search').typeahead({source: subjects})
should be
$('#search').typeahead({local: subjects})
And since typeahead is no longer included in the latest standard Bootstrap package, you need to download and point to it explicitly. The download link: typeahead.js
The latest version is 2015 so it has not been updated for a few years.