default value in filtered search listview
In my web app I use a listview
<ul id="autocomplete" data-role="listview" data-filter="true" data-filter-reveal="false" data-filter-placeholder="Enter filter ..." data-inset="true" data-theme="b" data-filter-theme="a" >
and it works great - as I type in letters the list view displays.
However, I would like somehow set a default value so that one the web page is first loaded it would display the appropriate lists based on the default value. I can't seem to figure out how to do that.
for example, with a list values of cars, trucks, bikes, buses - when page first gets loaded there is no list displaying. When I start typing 'bus" in the filtered search input box the list item containing 'buses' displays.
I would like to set an inital load value so when page first comes up for example, the input box would have the value 'truck' and shows list items containing 'truck' in the search results.
Thanks for anyone's help.