Skip to content
Permalink
Browse files

Autocomplete (combobox demo): Set intial value of text field based on…

… value of select element. Partial fix for #5757 - Autocomplete combobox issues.
  • Loading branch information...
scottgonzalez committed Jul 20, 2010
1 parent 5d1e297 commit 123467af8efc8541e333979a59ca9db36fec9cda
Showing with 4 additions and 1 deletion.
  1. +4 −1 demos/autocomplete/combobox.html
@@ -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,

0 comments on commit 123467a

Please sign in to comment.
You can’t perform that action at this time.