我正在尝试使用特定值填充可搜索的下拉列表,但我想组合其中的两个值并让它们返回任一值的结果。例如:
<td align="left" valign="top" nowrap>
<select name="SPORTS"
id="idCustom1"
onChange="AddSearchItem(this);"
class="StuFindSelect">
<option value=" ">No Attribute selected
<option value="BASEBALL">Baseball
<option value="BASKETBM">Mens Basketball
<option value="BASKETBW">Womens Basketball
<option value="CHEERLDS">Cheerleader
<option value="FOOTBALL">Football
<option value="GOLF">Golf
<option value="LACROSSW">Womens Lacrosse
<option value="SOCCERM">Mens Soccer
<option value="SOCCERW">Womens Soccer
<option value="TENNISM">Mens Tennis
<option value="TENNISW">Womens Tennis
<option value="TRACK">Track
<option value="VOLLEYBL">Volleyball
<option value="XCOUNTM">Mens Cross Country
<option value="XCOUNTW">Womens Cross Country
</select>
</td>
当用户选择篮球时,我想组合返回 BASKETBM 或 BASKETBW 的结果。经过研究,我尝试以几种不同的方式组合它们,
<option value="[BASKETBM,BASKETBW]">Basketball
<option value="BASKETBM,BASKETBW">Basketball
<option value="BASKETBM|BASKETBW">Basketball
以及我能找到的所有其他排列,但似乎没有任何效果。每次它在测试时返回零搜索结果。任何想法我做错了什么?谢谢。