How to provide dynamic link for bootstrap autocomplete suggestion list?

Data is populating correctly. However I want to redirect to a link based on the data I am selecting from suggestion list. For example: If I select ‘A’, it will redirect to ‘http://localhost/link/A‘ If I select ‘B’, it will redirect to ‘http://localhost/link/B‘ html <input type=”text” name=”txtcat” id=”txtcat” class=”form-control getcatval typeahead” placeholder=”Search for…”> javascript $(‘#txtcat’).typeahead({ source:…

Details