我有以下表格:
<form id="form-name" class="form-male" method="POST" action="/submit">
<div class="form-select">
<select name="name" class="select2-menu">
<option disabled="disabled" selected="selected">ΟΝΟΜΑ</option>
<option value="Alaska">Alaska</option>
<option value="Alabama">Alabama</option>
</select>
</div>
<button type="submit" class="cta cta-primary btn btn-default"><img src="img/submit.png" class="img-center img-responsive" /></button>
</form>
<script src="js/select2.min.js"></script>
<script type="text/javascript">
$('select').select2({
// minimumInputLength: 1,
casesensitive: false,
// minimumResultsForSearch: -1
});
</script>
以上示例当我输入&#34; A&#34;它停止显示&#34;阿拉斯加&#34;它只显示&#34; Alabama&#34;。它继续显示&#34;阿拉巴马州&#34;直到短语&#34; Ala&#34;。短语&#34; Alab&#34;是写的,它没有显示任何结果。
有什么想法吗?
答案 0 :(得分:0)
问题在于style.css