我想使用selectize.js,但我的代碼不工作?運行此代碼的 顯示標準(普通)選擇元素。爲什麼我的代碼不工作? (使用selectize.js)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
<script type="text/javascript" src="jquery-3.2.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="selectize.css" />
<script type="text/javascript" src="selectize.js"></script>
<script type="text/javascript">
$('#colors').selectize();
</script>
</head>
<body>
<select id="colors">
<option value="1">Red</option>
<option value="2">Green</option>
<option value="3">Blue</option>
</select>
</body>
</html>
的[可能的複製爲什麼jQuery的或DOM方法,例如as getElementById not found the element?](http://stackoverflow.com/questions/14028959/why-does-jquery-or-a-dom-method-such-as-getelementbyid-not-find-the-element) – Quentin