diff --git a/select2-latest.html b/select2-latest.html index 78fce407..f37ae629 100755 --- a/select2-latest.html +++ b/select2-latest.html @@ -843,25 +843,16 @@ $("#e18,#e18_2").select2();

Only applies to single-value select boxes

- placeholderobject/string + placeholderstring

Initial value that is selected if no other selection is made.

-

- The value can be specified either as an object or as a string. If - specified as a string any custom formatSelection function will be - bypassed and the string value will be rendered directly. -

The placeholder can also be specified as a data-placeholder attribute on the select - or input element that Select2 is attached to. In this case only string - values are supported + or input element that Select2 is attached to.

Note that because browsers assume the first option element - is selected in - non-multi-value select boxes an empty first option element must be provided (<option></option>) + is selected in non-multi-value select boxes an empty first option element must be provided (<option></option>) for the placeholder to work.

- -

When Select2 is used in multi-select mode the placeholder must be a string.

allowClear @@ -938,7 +929,7 @@ $("#e18,#e18_2").select2(); - +
ParameterTypeDescription
objectobjectThe selected result object returned from the query function
<returns>stringHtml that represents the selection
<returns>stringHtml string, a DOM element, or a jQuery object that renders the selection
The default implementation expects the object to have a text property that is returned.

diff --git a/select2-master b/select2-master index 5a733854..6f973d6e 160000 --- a/select2-master +++ b/select2-master @@ -1 +1 @@ -Subproject commit 5a73385474a6fe9878a15ee3e4a91ca3b39c0c24 +Subproject commit 6f973d6e406a27ed9bd62d5968113bca56e1e519