I am trying to bind data to a form text control bound to a datalist. The reason for this is i want to simulate an alax dropdown type search from a text field. While i know i could just simply filter a select via a query based on the text input i want the dropdown to stay open and dipslay results as it is filtered.
I would normally use a text field linked to a datalist to do this
Using static values works exactly as expected i.e.
I assume i have the data binding completely wrong, can anyone assist in how to do this or an alternative way to trying to achieve an ajax style dropdown filtered on a database query.
I effectively copied the syntax of a select as it is almost identical other than only a value is needed, not a text entry.
Also wondering if i could just use the google API to interface with maps as i want to allow the user to pick a location, currently limiting it to a list but could be opened up to the entire google lookup. Any API guys out there want a challenge?
for info, the client wants to do something like on here.
1.datalist is a repeat region
2. inside the<option> , dmx-bind:optionvalue so it renders all optionvalue with their respective value from the repeat
3. between the <option></option> just bind the value which is equal to the dmx-bind:optionvalue
Tested it and it works, if you have issues let me know.
Thanks!