【发布时间】:2016-07-12 13:48:23
【问题描述】:
<label>Service Offering</label></br>
<select style='color:black' id="first_choice" required name="first_pref">
<option value="" disabled selected hidden>First preference</option>
<option value="Engineering and Design">Engineering and Design</option>
<option value="Operations and Design">Operations and Design</option>
<option value="Product management">Product management</option>
<option value="Developer relations and technical solutions">Developer relations and technical solutions</option>
<option value="Sales and account management">Sales and account management</option>
<option value="Partnerships">Partnerships</option>
<option value="Sales and operations">Sales and operations</option>
<option value="Administrative services">Administrative services</option>
<option value="Business strategy planning">Business strategy planning</option>
<option value="Finance solutions">Finance solutions</option>
<option value="Legal and government relations">Legal and government relations</option>
<option value="Marketing and communications">Marketing and communications</option>
<option value="Real estate and workplace services">Real estate and workplace services</option>
<option value="Social impact solutions">Social impact solutions</option>
<option value="Consultancy services">Consultancy services</option>
<option value="Investors and funding">Investors and funding</option>
</select></br></br>
<!--second preference-->
<select style='color:black' id="second_choice" required name="second_pref">
<option value="" disabled selected hidden>Second Preference</option>
<option value="Engineering and Design">Engineering and Design</option>
<option value="Operations and Design">Operations and Design</option>
<option value="Product management">Product management</option>
<option value="Developer relations and technical solutions">Developer relations and technical solutions</option>
<option value="Sales and account management">Sales and account management</option>
<option value="Partnerships">Partnerships</option>
<option value="Sales and operations">Sales and operations</option>
<option value="Administrative services">Administrative services</option>
<option value="Business strategy planning">Business strategy planning</option>
<option value="Finance solutions">Finance solutions</option>
<option value="Legal and government relations">Legal and government relations</option>
<option value="Marketing and communications">Marketing and communications</option>
<option value="Real estate and workplace services">Real estate and workplace services</option>
<option value="Social impact solutions">Social impact solutions</option>
<option value="Consultancy services">Consultancy services</option>
<option value="Investors and funding">Investors and funding</option>
</select></br></br>
<!--3rd preference-->
<select style='color:black' id="third_choice" required name="third_pref">
<option value="" disabled selected hidden>Third Preference</option>
<option value="Engineering and Design">Engineering and Design</option>
<option value="Operations and Design">Operations and Design</option>
<option value="Product management">Product management</option>
<option value="Developer relations and technical solutions">Developer relations and technical solutions</option>
<option value="Sales and account management">Sales and account management</option>
<option value="Partnerships">Partnerships</option>
<option value="Sales and operations">Sales and operations</option>
<option value="Administrative services">Administrative services</option>
<option value="Business strategy planning">Business strategy planning</option>
<option value="Finance solutions">Finance solutions</option>
<option value="Legal and government relations">Legal and government relations</option>
<option value="Marketing and communications">Marketing and communications</option>
<option value="Real estate and workplace services">Real estate and workplace services</option>
<option value="Social impact solutions">Social impact solutions</option>
<option value="Consultancy services">Consultancy services</option>
<option value="Investors and funding">Investors and funding</option>
</select>
我有三个下拉列表,它们都包含相同的数据但名称不同。我希望使用唯一值选择所有三个列表。这意味着如果在第一个列表中选择了 1,那么其余两个列表中的 1 将不可用。如何用一个简单的 HTML 表单来实现它。
【问题讨论】:
-
你不能只使用 HTML 来做到这一点。您需要使用 Javascript。
标签: html