Materialise筹码组件不允许重复具有相同的大小写(小写/大写)
然而,我们如何才能在区分大小写的芯片上实现相同的目标? 即,用户不应该输入“abc”和“ABC”这样的芯片
$('.chips-placeholder').material_chip({
placeholder: 'Enter a tag',
secondaryPlaceholder: '+Add more tags',
});
<!--Added external styles and scripts-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/js/materialize.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.7/css/materialize.min.css">
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Html body-->
<div class="chips chips-placeholder"></div>