Permalink
Browse files

adding default "selected" option to the autocomplete input box

  • Loading branch information...
1 parent 7750bd0 commit 670f8bf4a3b1783db4733269c0b968f2e980ae9e @joetsuihk committed Jul 8, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 demos/autocomplete/combobox.html
@@ -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) {

0 comments on commit 670f8bf

Please sign in to comment.