123467a
click here to add a description
click here to add a homepage
The official jQuery user interface library. — Read more
http://jqueryui.com/
This URL has Read+Write access
Autocomplete (combobox demo): Set intial value of text field based on value of select element. Partial fix for #5757 - Autocomplete combobox issues.
@@ -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,
123467a