I disable and enable jQuery autocomplete combobox using the following:
$("#classno").parent().find("input.ui-autocomplete-input")
.autocomplete("option", "disabled", true).prop("disabled",true);
$("#classno").parent().find("input.ui-autocomplete-input")
.autocomplete("option", "disabled", true).prop("disabled",false);
It works fine, but when I enable it I can’t see the values which were added previously.
What’s wrong with this?
http://api.jqueryui.com/autocomplete/#method-disable