Skip to content

Commit

Permalink
Autocomplete (combobox demo): Set intial value of text field based on…
Browse files Browse the repository at this point in the history
… value of select element. Partial fix for #5757 - Autocomplete combobox issues.
  • Loading branch information
scottgonzalez committed Jul 20, 2010
1 parent 5d1e297 commit 123467a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demos/autocomplete/combobox.html
Expand Up @@ -22,9 +22,12 @@
$.widget( "ui.combobox", {
_create: function() {
var self = this;
var select = this.element.hide();
var select = this.element.hide(),
selected = select.children( ":selected" ),
value = selected.val() ? selected.text() : "";
var input = $( "<input>" )
.insertAfter( select )
.val( value )
.autocomplete({
delay: 0,
minLength: 0,
Expand Down

0 comments on commit 123467a

Please sign in to comment.