We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89c517b commit 60e3925Copy full SHA for 60e3925
1 file changed
docs/_includes/options/selections/clearing-selections.html
@@ -29,6 +29,16 @@ <h3>
29
<h3>
30
Can users remove all of their selections in a multiple select at once?
31
</h3>
32
-
33
- <p>Yes, see: <a href="examples.html#programmatic">https://select2.github.io/examples.html#programmatic</a></p>
+
+ <p>
34
+ Yes, by setting the value of the control to <code>null</code>:
35
+ </p>
36
37
+{% highlight js linenos %}
38
+$('select').val(null).trigger('change');
39
+{% endhighlight %}
40
41
42
+ See <a href="examples.html#programmatic">https://select2.github.io/examples.html#programmatic</a> for a working example.
43
44
</section>
0 commit comments