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
-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.
Parameter | Type | Description |
---|---|---|
object | object | The selected result object returned from the query function |
<returns> | string | Html that represents the selection |
<returns> | string | Html string, a DOM element, or a jQuery object that renders the selection |
text
property that is returned.