I have got an input box:
<div id="myDiv" class="col-sm-10">
{# Autocomplete text box #}
<input class="form-control" type="text" name="myAutoComplete" id="MyAutocomplete1">
</div>
And I have some jQuery to initialise this textbox so it becomes an "autocomplete" box, where a user types in a few letters and can select a match from the list.
When the jQuery loads the data (there is quite a bit, roughly 10,000 entries) it takes a bit of time - maybe 5 seconds. If the user types into the autocomplete box during this time, obviously the autocomplete doesn't work because the data hasn't finished loading.
How can I add a "loading state" to this input text field? I want a similar sort of functionality to http://getbootstrap.com/javascript/#buttons - where after a period of time instead of saying "Loading..." it just becomes active.
Thanks