0
我有以下选择:如何通过选定的选项设置弹出菜单中的更改?
<form>
<select id="poSelect" >
<option selected disabled>Choose here</option>
<option id="buyeroption" value="100101">I am a Buyer</option>
<option id="garageoption" value="100102">I am a Garage</option>
</select>
<label>Full Name</label>
<input type="text" />
<label>Email Address</label>
<input type="email" />
<label>Password</label>
<input type="password" />
<label id="industrylabel" >Select Your Brand</label>
<select id="industryoption">
<option selected disabled>Select</option>
<option value="Renault">Renault</option>
<option value="Pegaut">Pegaut</option>
<option value="Citroen">Citroen</option>
</select>
<div class="form-check-label">
<input id="send_updates" type="checkbox" />
<label for="send_updates">Send me occasional email updates</label>
</div>
所以我需要的是,当用户选择我是一个买方标签“选择你的品牌”和产业选项选择要隐藏,但是当我点击我的车库出现。
你能解释一下我们简单,输出 – Gowtham
的正确的代码段或图像也许这(非功能性)JSFiddle可以让你了解所需的逻辑。 – Feathercrown