From 3bc7f4ac78b58eff8cd17b3273596638c3c9c5c1 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Sat, 23 Apr 2016 20:36:39 -0400 Subject: [PATCH] Added docs section for HTML labels This will make it easier in the future to test that we support labels, and it tells people who are looking to confirm that we support labels that we in fact do. --- docs/_includes/examples/basics.html | 37 +++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/_includes/examples/basics.html b/docs/_includes/examples/basics.html index 5cd1ca19..a077da77 100644 --- a/docs/_includes/examples/basics.html +++ b/docs/_includes/examples/basics.html @@ -59,6 +59,39 @@ $(".js-example-basic-multiple").select2(); {% endhighlight %} - - +

Select boxes with labels

+ +

+ You can, and should, use a <label> with Select2, just like any other <select> element. +

+ +
+

+ +

+

+ +

+
+ +{% highlight html linenos %} + + + +{% endhighlight %} + \ No newline at end of file