我已經嘗試搜索這兩個問題,一些建議是不包括表格內的表格,所以我已經刪除了所有的表格,因爲顯然這不是格式化您的網站的正確方法?另一個建議是,我的jquery沒有正確鏈接,我認爲這是問題,因爲這些表單沒有按照它們應有的表現。未定義的屬性名稱數據佔位符
我正在使用選定的jquery http://harvesthq.github.io/chosen/和MVC yii框架。
下面是我想我的Java文件
<script src="./assets/chosenjquery/js/chosen.jquery.min.js" type="text/javascript"></script>
<script src="./assets/chosenjquery/js/chosen.jquery.js" type="text/javascript"></script>
<link href="./assets/chosenjquery/css/chosen.css" rel="stylesheet" type="text/css" />
鏈接,這裏是我在使用上,我也行收到警告未定義的屬性名(數據佔位符)的問題形式<select data-placeholder="Select a Country.." class="chzn-select" style="width:350px;" tabindex="2">
<!-- Select Country -->
<p>
<label for="selectCountry">Select a Country:</label>
<form id="selectCountry" name="selectCountry">
<select data-placeholder="Select a Country.." class="chzn-select" style="width:350px;" tabindex="2">
<option value="" selected="selected"></option>
<option value="Australia">Australia</option>
<option value="USA">USA</option>
<option value="Canada">Canada</option>
<option value="England">England</option>
</select>
</form>
</p>
的形式被認爲是下拉菜單的下降與搜索包括該顯示在列表匹配的值。請參閱http://harvesthq.github.io/chosen/它在哪裏更改標準選擇菜單。然而,我的顯示了一個標準列表,這讓我覺得我的java文件鏈接有問題。這個工作在以前的項目:因爲他是在p
/pre
標籤/
您的選擇沒有「名稱」 – DevZer0
和「數據佔位符」不是選擇的有效屬性 – 2013-06-21 05:03:40
@Dagon請參閱提供的鏈接。 OP代碼是正確的。 –