adding default "selected" option to the autocomplete input box if <select> have default option #2

Closed
wants to merge 1 commit into
from
@@ -24,6 +24,7 @@
var self = this;
var select = this.element.hide();
var input = $("<input>")
+ .attr('value', $(select).children('option:selected').html())
.insertAfter(select)
.autocomplete({
source: function(request, response) {