fixed typos. fixes #1309
This commit is contained in:
parent
981f2bce57
commit
01f0d9562e
@ -1531,7 +1531,7 @@ $("#select").select2({
|
||||
</table>
|
||||
<p><code>val</code> method invoked on a single-select with an unset value will return <code>""</code>, while a <code>val</code> method invoked on an empty multi-select will return <code>[]</code></p>
|
||||
|
||||
Example: <pre class="prettyprint">alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", "CA"});</pre>
|
||||
Example: <pre class="prettyprint">alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", "CA");</pre>
|
||||
<p class="alert alert-info">Notice that in order to use this method you must define the <code>initSelection</code> function in the options so Select2 knows how to transform the id of the object you pass in <code>val()</code> to the full object it needs to render selection. If you are attaching to a <code>select</code> element this function is already provided for you.</p>
|
||||
|
||||
<div class="row">
|
||||
|
@ -1542,7 +1542,7 @@ $("#select").select2({
|
||||
</table>
|
||||
<p><code>val</code> method invoked on a single-select with an unset value will return <code>""</code>, while a <code>val</code> method invoked on an empty multi-select will return <code>[]</code></p>
|
||||
|
||||
Example: <pre class="prettyprint">alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", "CA"});</pre>
|
||||
Example: <pre class="prettyprint">alert("Selected value is: "+$("#e8").select2("val")); $("#e8").select2("val", "CA");</pre>
|
||||
<p class="alert alert-info">Notice that in order to use this method you must define the <code>initSelection</code> function in the options so Select2 knows how to transform the id of the object you pass in <code>val()</code> to the full object it needs to render selection. If you are attaching to a <code>select</code> element this function is already provided for you.</p>
|
||||
|
||||
<div class="row">
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 95d3728b77c0e3adcbeaab0b9e5a6b77b67e23c0
|
||||
Subproject commit de6d90c079803659e1c30c54d093c64e8259b0f2
|
Loading…
Reference in New Issue
Block a user