如何使用select选中?
How to use select chosen?
我在 table
中有这一行
<td class="chosen-container chosen-container-single chosen-with-drop chosen-container-active" style="width: 100%" title="">
<a class="chosen-single chosen-default" tabindex="-1">
<span>Choose a country...</span>
<div><b></b></div>
</a>
<div class="chosen-drop">
<div class="chosen-search">
<input type="text" autocomplete="off" tabindex="2" />
</div>
<select class="chosen-results">
<option value=""></option>
<option class="active-result" data-option-array-index="1">United States</option>
<option class="active-result" data-option-array-index="2">United Kingdom</option>
<option class="active-result" data-option-array-index="3">Afghanistan</option>
<option class="active-result" data-option-array-index="4">Aland Islands</option>
<option class="active-result" data-option-array-index="5">Albania</option>
</select>
</div>
</td>
这段代码有什么问题?我需要实现选择的标准 select.
你的意思是这样的?
<option value="" class="placeholder">select</option>
我在 table
中有这一行<td class="chosen-container chosen-container-single chosen-with-drop chosen-container-active" style="width: 100%" title="">
<a class="chosen-single chosen-default" tabindex="-1">
<span>Choose a country...</span>
<div><b></b></div>
</a>
<div class="chosen-drop">
<div class="chosen-search">
<input type="text" autocomplete="off" tabindex="2" />
</div>
<select class="chosen-results">
<option value=""></option>
<option class="active-result" data-option-array-index="1">United States</option>
<option class="active-result" data-option-array-index="2">United Kingdom</option>
<option class="active-result" data-option-array-index="3">Afghanistan</option>
<option class="active-result" data-option-array-index="4">Aland Islands</option>
<option class="active-result" data-option-array-index="5">Albania</option>
</select>
</div>
</td>
这段代码有什么问题?我需要实现选择的标准 select.
你的意思是这样的?
<option value="" class="placeholder">select</option>