I currently get a list of cities from a loop that looks like this:
<label>City</label>
<select class="input-block-level" name="city">
<option value=" ">Any</option>
<!-- TMPL_LOOP Cities -->
<option value="<!-- TMPL_VAR city_name -->">
<!-- TMPL_VAR city_name -->
</option>
<!-- /TMPL_LOOP -->
</select>'
How would i convert this into a typeahead? I do not have the ability to change the loop code, so i have to work with what i have.
I tried this and did not work:
<input autocomplete="off" class="typeahead" type="text"
data-provide="typehead"
data-items="4"
data-source="[
<!-- TMPL_LOOP Cities -->
"<!-- TMPL_VAR city_name -->",
<!-- /TMPL_LOOP -->
]" />