ERP.Web/res/assets/plugins/select2/docs/_includes/examples/multiple-max.html

(开头部分) 649B

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<section>
  <h1 id="multiple-max">
    Limiting the number of selections
  </h1>

  <p>
    Select2 multi-value select boxes can set restrictions regarding the
    maximum number of options selected. The select below is declared with
    the <code>multiple</code> attribute with <code>maximumSelectionLength</code>
    in the select2 options.
  </p>

  <div class="s2-example">
    <p>
      <select class="js-example-basic-multiple-limit js-states form-control" multiple="multiple"></select>
    </p>
  </div>

{% highlight js linenos %}
$(".js-example-basic-multiple-limit").select2({
  maximumSelectionLength: 2
});
{% endhighlight %}
</section>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。