Skip to content

Commit

Permalink
Fixing bug introduced in previous commit (#d29cdcd2f9547d9661c8e72bd4…
Browse files Browse the repository at this point in the history
…3f70352271f945)
  • Loading branch information
Jamie Appleseed committed Dec 11, 2011
1 parent d29cdcd commit 61d5461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.select-to-autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ THE SOFTWARE.
attrs[key] = raw_attrs[i].nodeValue;
}
};
$text_field.attr( attrs );
}
return $text_field.attr( attrs )
.val( $select_field.find('option:selected:first').text() )
return $text_field.val( $select_field.find('option:selected:first').text() )
.insertAfter( $select_field );
},
extract_options: function( $select_field ) {
Expand Down

0 comments on commit 61d5461

Please sign in to comment.