I'm trying to make a Joomla component (2.5) and I need an autocomplete input or type-ahead, it doesn't matter. I tried a lot of things from the internet, but they didn't work.
Can I get a basic working code ?
HTML
<div>
<h2>Example</h2>
<div class="demo">
<input class="typeahead" type="text" placeholder="Start typing..."/>
</div>
</div>
JS
$(document).ready(function() {
$('.typeahead').typeahead({
local: ["Bachelor of Science","Bachelor of Science in Accounting"]
});
})